diff options
Diffstat (limited to 'js/controller')
-rw-r--r-- | js/controller/NavigationController.js | 10 |
1 files changed, 9 insertions, 1 deletions
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 +}); |