summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-12 20:08:02 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-12 20:08:02 +0200
commit218ddcaf530b9f22eb199ab8081ac1bb31fd9711 (patch)
treee6861963fdcd35056ff0411ae531427a6ad5b6b0 /js/build/app.js
parentb86a5591667ca8de3a83ef5bcbc756e356979b5a (diff)
mark read in the navigation, fix drag and drop
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/js/build/app.js b/js/build/app.js
index c5ccf2e8e..50c712e16 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -960,7 +960,6 @@ app.factory('ItemResource', ["Resource", "$http", "BASE_URL", "ITEM_BATCH_SIZE",
ITEM_BATCH_SIZE) {
'use strict';
-
var ItemResource = function ($http, BASE_URL, ITEM_BATCH_SIZE) {
Resource.call(this, $http, BASE_URL);
this.starredCount = 0;
@@ -1080,7 +1079,9 @@ app.factory('ItemResource', ["Resource", "$http", "BASE_URL", "ITEM_BATCH_SIZE",
item.unread = !read;
});
- return this.http.post(this.BASE_URL + '/feeds/' + feedId + '/read');
+ return this.http.post(this.BASE_URL + '/feeds/' + feedId + '/read', {
+ highestItemId: this.getNewestItemId()
+ });
};
@@ -1089,7 +1090,13 @@ app.factory('ItemResource', ["Resource", "$http", "BASE_URL", "ITEM_BATCH_SIZE",
item.unread = false;
});
- return this.http.post(this.BASE_URL + '/items/read');
+ return this.http({
+ url: this.BASE_URL + '/items/read',
+ method: 'POST',
+ data: {
+ highestItemId: this.getNewestItemId()
+ }
+ });
};