summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--js/app/services/persistence.coffee3
-rw-r--r--js/public/app.js3
2 files changed, 6 insertions, 0 deletions
diff --git a/js/app/services/persistence.coffee b/js/app/services/persistence.coffee
index 964826267..a1697ee0f 100644
--- a/js/app/services/persistence.coffee
+++ b/js/app/services/persistence.coffee
@@ -103,7 +103,10 @@ $rootScope, $q) ->
onFailure: failureCallbackWrapper
if not @_preventUselessAutoPageRequest
+ console.log 'request'
@_request.get 'news_items', params
+ else
+ console.log 'no request'
getNewItems: (type, id, lastModified, onSuccess) ->
diff --git a/js/public/app.js b/js/public/app.js
index 7c9bbca63..152a7af64 100644
--- a/js/public/app.js
+++ b/js/public/app.js
@@ -2806,7 +2806,10 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
onFailure: failureCallbackWrapper
};
if (!this._preventUselessAutoPageRequest) {
+ console.log('request');
return this._request.get('news_items', params);
+ } else {
+ return console.log('no request');
}
};