From a805034f1d00b78a33dfa1f28ff259ed4c5a8f26 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 29 Jan 2017 19:56:41 -0800 Subject: fix zero item bug --- static/ui.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'static') 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 = []; -- cgit v1.2.3