diff options
Diffstat (limited to 'js/build/app.js')
-rw-r--r-- | js/build/app.js | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/js/build/app.js b/js/build/app.js index 4ac05370a..9dd7e321a 100644 --- a/js/build/app.js +++ b/js/build/app.js @@ -777,7 +777,7 @@ app.controller('NavigationController', }; this.renameFeed = function (feed) { - FeedResource.rename(feed.id, feed.title); + FeedResource.patch(feed.id, {title: feed.title}); feed.editing = false; }; @@ -1148,16 +1148,6 @@ app.factory('FeedResource', ["Resource", "$http", "BASE_URL", "$q", function (Re return this.locations[location]; }; - FeedResource.prototype.rename = function (id, title) { - return this.http({ - method: 'POST', - url: this.BASE_URL + '/feeds/' + id + '/rename', - data: { - feedTitle: title - } - }); - }; - FeedResource.prototype.move = function (feedId, folderId) { var feed = this.getById(feedId); @@ -1166,13 +1156,7 @@ app.factory('FeedResource', ["Resource", "$http", "BASE_URL", "$q", function (Re this.updateFolderCache(); this.updateUnreadCache(); - return this.http({ - method: 'POST', - url: this.BASE_URL + '/feeds/' + feed.id + '/move', - data: { - parentFolderId: folderId - } - }); + return this.patch(feedId, {folderId: folderId}); }; |