From 70ff47a9b77797e75137ba02f0b7df9bc2745f56 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Sun, 6 Sep 2015 15:42:51 +0200 Subject: fix # 848 --- js/controller/NavigationController.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'js/controller/NavigationController.js') 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 () { -- cgit v1.2.3