diff options
author | Davide Saurino <davide.saurino@alcacoop.it> | 2013-11-27 10:52:21 +0100 |
---|---|---|
committer | Davide Saurino <davide.saurino@alcacoop.it> | 2013-11-27 10:52:21 +0100 |
commit | aacdd4328a2cca19f96aad63a4ac2148eb470c45 (patch) | |
tree | bad7b0fc15fe44abacc50ddd2a2cd42c15bfc24e /templates | |
parent | 4385861d127ddd552d531a34bb8599cd1e43871b (diff) |
Move set/unset feed editing code to controller
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.listfeed.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/part.listfeed.php b/templates/part.listfeed.php index a78da8576..157d69c2a 100644 --- a/templates/part.listfeed.php +++ b/templates/part.listfeed.php @@ -17,10 +17,10 @@ revert: true }"> - <div ui-if="feed.editing" class="rename-feed"> + <div ui-if="feed.editing" class="rename-feed" ng-controller="ItemController"> <input type="text" ng-model="feed.title" autofocus> <button title="<?php p($l->t('Cancel')); ?>" - ng-click="feedBusinessLayer.renameFeedUnset(feed.id)" + ng-click="cancel(feed.id)" class="action-button back-button action"></button> <button title="<?php p($l->t('Save')); ?>" ng-click="feedBusinessLayer.renameFeed(feed.id, feed.title)" @@ -67,7 +67,8 @@ <button class="svg action rename-feed-icon" ng-hide="feed.editing" - ng-click="feedBusinessLayer.renameFeedSet(feed.id)" + ng-controller="ItemController" + ng-click="edit(feed.id)" title="<?php p($l->t('Rename feed')); ?>" oc-tooltip></button> |