From 38b71e64f6dfda4e49b261f3ac1465e268857311 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Tue, 24 Jan 2017 21:35:09 -0800 Subject: bugfix js no items left --- static/ui.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'static') diff --git a/static/ui.js b/static/ui.js index b0f7aa2..5ab79ea 100644 --- a/static/ui.js +++ b/static/ui.js @@ -275,10 +275,13 @@ var ItemCollection = Backbone.Collection.extend({ }); console.log("items ", items) if(items.length == 0) { + console.log("no more items"); App.noMore = true; + App.loading = true; + } + else { + App.loading = false; } - App.loading = false; - // we wait and add them all at once for performance on mobile App.itemListView.addAll(items); -- cgit v1.2.3