summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDavide Saurino <davide.saurino@alcacoop.it>2013-11-27 10:52:21 +0100
committerDavide Saurino <davide.saurino@alcacoop.it>2013-11-27 10:52:21 +0100
commitaacdd4328a2cca19f96aad63a4ac2148eb470c45 (patch)
treebad7b0fc15fe44abacc50ddd2a2cd42c15bfc24e /templates
parent4385861d127ddd552d531a34bb8599cd1e43871b (diff)
Move set/unset feed editing code to controller
Diffstat (limited to 'templates')
-rw-r--r--templates/part.listfeed.php7
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>