diff options
Diffstat (limited to 'js/controller/NavigationController.js')
-rw-r--r-- | js/controller/NavigationController.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js index 00c5b9699..259b9ff7d 100644 --- a/js/controller/NavigationController.js +++ b/js/controller/NavigationController.js @@ -302,6 +302,13 @@ function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource, $route.reload(); }; + this.togglePinned = function (feedId) { + var feed = FeedResource.getById(feedId); + if (feed) { + return FeedResource.setPinned(feedId, !feed.pinned); + } + }; + this.toggleFullText = function (feed) { $rootScope.$broadcast('$routeChangeStart'); FeedResource.toggleFullText(feed.id).finally(function () { |