summaryrefslogtreecommitdiffstats
path: root/js/public/app.js
diff options
context:
space:
mode:
authorDavide Saurino <davide.saurino@alcacoop.it>2013-11-12 10:55:43 +0100
committerDavide Saurino <davide.saurino@alcacoop.it>2013-11-12 10:55:43 +0100
commit86196178ebd18fea826d00278d811ad89f946db3 (patch)
tree8f160bf0895f197f2a9931a548b0f26f59901282 /js/public/app.js
parentbe253cdc1ba255cecb0dba910e1fc7b08b7707eb (diff)
FIX + new app.js added
Diffstat (limited to 'js/public/app.js')
-rw-r--r--js/public/app.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/js/public/app.js b/js/public/app.js
index 87ea8c288..caa3aec7c 100644
--- a/js/public/app.js
+++ b/js/public/app.js
@@ -1107,6 +1107,15 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
return this._persistence.deleteFeed(feedId);
};
+ FeedBusinessLayer.prototype.renameFeed = function(feedId, feedTitle) {
+ var feed;
+ feed = this._feedModel.getById(feedId);
+ feed.editing = false;
+ if (angular.isDefined(feed) && feedTitle !== "") {
+ return this._persistence.renameFeed(feedId, feedTitle);
+ }
+ };
+
FeedBusinessLayer.prototype.markRead = function(feedId) {
var feed, item, newestItemId, _i, _len, _ref;
feed = this._feedModel.getById(feedId);
@@ -2894,6 +2903,23 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
return this._request.post('news_feeds_move', params);
};
+ Persistence.prototype.renameFeed = function(feedId, feedTitle) {
+ /*
+ rename a feed
+ */
+
+ var params;
+ params = {
+ routeParams: {
+ feedId: feedId
+ },
+ data: {
+ feedTitle: feedTitle
+ }
+ };
+ return this._request.post('news_feeds_rename', params);
+ };
+
Persistence.prototype.setFeedRead = function(feedId, highestItemId) {
/*
sets all items of a feed as read