From 5fb9e4a435d77542951f8e8ab21ac85d6a7e0721 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 18 Sep 2014 20:18:01 +0200 Subject: autopage later to give an impression that the app is fast :P --- js/directive/NewsScroll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/directive') diff --git a/js/directive/NewsScroll.js b/js/directive/NewsScroll.js index a2603bb67..d4a46a79f 100644 --- a/js/directive/NewsScroll.js +++ b/js/directive/NewsScroll.js @@ -7,7 +7,7 @@ * @author Bernhard Posselt * @copyright Bernhard Posselt 2014 */ -app.directive('newsScroll', function ($timeout, ITEM_BATCH_SIZE, +app.directive('newsScroll', function ($timeout, ITEM_AUTO_PAGE_SIZE, MARK_READ_TIMEOUT, SCROLL_TIMEOUT) { 'use strict'; var timer; @@ -86,7 +86,7 @@ app.directive('newsScroll', function ($timeout, ITEM_BATCH_SIZE, allowScroll = true; }, SCROLL_TIMEOUT*1000); - autoPage(ITEM_BATCH_SIZE, elem, scope); + autoPage(ITEM_AUTO_PAGE_SIZE, elem, scope); // dont stack mark read requests if (timer) { -- cgit v1.2.3