diff options
author | Adam Mathes <adam@trenchant.org> | 2017-01-29 19:56:41 -0800 |
---|---|---|
committer | Adam Mathes <adam@trenchant.org> | 2017-01-29 19:56:41 -0800 |
commit | a805034f1d00b78a33dfa1f28ff259ed4c5a8f26 (patch) | |
tree | 5210ea02297b3424fc2ef5519539a232d5cdf006 /static | |
parent | 81e3737fb46350b13e97866a376011059506949f (diff) | |
download | neko-a805034f1d00b78a33dfa1f28ff259ed4c5a8f26.tar.gz neko-a805034f1d00b78a33dfa1f28ff259ed4c5a8f26.tar.bz2 neko-a805034f1d00b78a33dfa1f28ff259ed4c5a8f26.zip |
fix zero item bug
Diffstat (limited to 'static')
-rw-r--r-- | static/ui.js | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/static/ui.js b/static/ui.js index b8bb06f..8dcff97 100644 --- a/static/ui.js +++ b/static/ui.js @@ -62,10 +62,6 @@ var AppModel = Backbone.Model.extend({ }, update_read_status: function() { - if(PUBLIC_VERSION) { - return; - } - var screen_top = $(window).scrollTop(); var screen_bottom = $(window).scrollTop() + $(window).height(); @@ -179,10 +175,6 @@ var Item = Backbone.Model.extend({ }, maybeSave: function() { - if(PUBLIC_VERSION) { - return; - } - if(this.hasChanged()) { this.save(); } @@ -256,12 +248,7 @@ var ItemCollection = Backbone.Collection.extend({ url = url + '&read_filter=all'; } - if(PUBLIC_VERSION) { - url = url + '&read_filter=all'; - } - - // console.log('fetching from ', url); - + console.log('fetching from ', url); var t = this; $.getJSON(url, function(data) { var items = []; |