diff options
Diffstat (limited to 'js/controller/ContentController.js')
-rw-r--r-- | js/controller/ContentController.js | 6 |
1 files changed, 6 insertions, 0 deletions
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); |