summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2013-12-20 23:16:12 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2013-12-20 23:16:12 +0100
commit4c310835ed14e5ae4f428fdadd57d27f17620319 (patch)
tree618082b57b6ed37640e567f5cca0eeb095ab1478 /js
parentc0ffe8b967ea81d25784188bb9697a9b1fde4755 (diff)
debug
Diffstat (limited to 'js')
-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');
}
};