summaryrefslogtreecommitdiffstats
path: root/js/controller
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-29 23:10:55 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-29 23:10:55 +0200
commit320304c909dc12c14b53335a7f32550809c06178 (patch)
tree20409afd21f88f098d5c72ebfe9b10525f5190f3 /js/controller
parentcba949fb0771c832326fc7886cced2bdc37e7536 (diff)
dont mark read on scroll
Diffstat (limited to 'js/controller')
-rw-r--r--js/controller/ContentController.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js
index 164fa8662..804c898e5 100644
--- a/js/controller/ContentController.js
+++ b/js/controller/ContentController.js
@@ -11,6 +11,8 @@ app.controller('ContentController',
function (Publisher, FeedResource, ItemResource, SettingsResource, data) {
'use strict';
+ this.isAutoPagingEnabled = true;
+
ItemResource.clear();
// distribute data to models based on key
@@ -70,4 +72,12 @@ function (Publisher, FeedResource, ItemResource, SettingsResource, data) {
console.log(itemIds);
};
+ this.autoPagingEnabled = () => {
+ return this.isAutoPagingEnabled;
+ };
+
+ this.markReadEnabled = () => {
+ return !SettingsResource.get('preventReadOnScroll');
+ };
+
}); \ No newline at end of file