diff options
author | Adam Mathes <adam@trenchant.org> | 2017-01-24 21:35:09 -0800 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2017-01-24 21:35:09 -0800 |
commit | 38b71e64f6dfda4e49b261f3ac1465e268857311 (patch) | |
tree | 54743d4ebcf281950b0ce29ed485a71886c60cbf /static | |
parent | 1129a61295ab7d3a605861da75e0d3e4cd86c8c2 (diff) | |
download | neko-38b71e64f6dfda4e49b261f3ac1465e268857311.tar.gz neko-38b71e64f6dfda4e49b261f3ac1465e268857311.tar.bz2 neko-38b71e64f6dfda4e49b261f3ac1465e268857311.zip |
bugfix js no items left
Diffstat (limited to 'static')
-rw-r--r-- | static/ui.js | 7 |
1 files changed, 5 insertions, 2 deletions
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); |