From 53679811da855acf9bd944a389a48399ca5d5a15 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 10 Aug 2015 20:20:30 +0200 Subject: serverside full text remove enhancers add full text client side implementation fix bugs and tests for full text feed --- js/controller/NavigationController.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'js/controller/NavigationController.js') diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js index bbe6dff5b..00c5b9699 100644 --- a/js/controller/NavigationController.js +++ b/js/controller/NavigationController.js @@ -302,6 +302,14 @@ function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource, $route.reload(); }; + this.toggleFullText = function (feed) { + $rootScope.$broadcast('$routeChangeStart'); + FeedResource.toggleFullText(feed.id).finally(function () { + $rootScope.$broadcast('$routeChangeSuccess'); + $route.reload(); + }); + }; + this.search = function (value) { if (value === '') { $location.search('search', null); @@ -348,4 +356,4 @@ function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource, setSelectedFolderForRoute(); }); -}); \ No newline at end of file +}); -- cgit v1.2.3