From 7b3ed892681a44e2739e4062e44c53fa0a904667 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Tue, 9 Sep 2014 22:37:31 +0200 Subject: only toggle item if in compact mode --- js/controller/ContentController.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js/controller/ContentController.js') diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index a14e4d67c..d2ca6efb7 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -29,6 +29,12 @@ function (Publisher, FeedResource, ItemResource, SettingsResource, data, ItemResource.toggleStar(itemId); }; + this.toggleItem = (item) => { + if (this.isCompactView()) { + item.show = !item.show; + } + }; + this.markRead = (itemId) => { let item = ItemResource.get(itemId); -- cgit v1.2.3