summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
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/build/app.js
parentcba949fb0771c832326fc7886cced2bdc37e7536 (diff)
dont mark read on scroll
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/build/app.js b/js/build/app.js
index 3e0e5624e..eb16bafb3 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -183,6 +183,8 @@ var $__build_47_app__ = function () {
'data',
function (Publisher, FeedResource, ItemResource, SettingsResource, data) {
'use strict';
+ var $__0 = this;
+ this.isAutoPagingEnabled = true;
ItemResource.clear();
Publisher.publishAll(data);
this.getItems = function () {
@@ -226,6 +228,12 @@ var $__build_47_app__ = function () {
this.scrollRead = function (itemIds) {
console.log(itemIds);
};
+ this.autoPagingEnabled = function () {
+ return $__0.isAutoPagingEnabled;
+ };
+ this.markReadEnabled = function () {
+ return !SettingsResource.get('preventReadOnScroll');
+ };
}
]);
app.controller('NavigationController', [