diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-03 23:53:30 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-03 23:53:42 +0200 |
commit | 4ab9494fc90d9131afd50048369b92c2e47a9b6a (patch) | |
tree | 1066a874b9fed2ab6f646349a0aafbf686321ee3 /templates/part.listfeed.php | |
parent | 2abf47a533e56d42262e5061b8ffa9234129b9c9 (diff) |
only instantiate one itemcontroller, prevent tons of requests when autopaging, fix #498
Diffstat (limited to 'templates/part.listfeed.php')
-rw-r--r-- | templates/part.listfeed.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/part.listfeed.php b/templates/part.listfeed.php index d6a434e59..afecddc37 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" ng-controller="ItemController"> + <div ui-if="feed.editing" class="rename-feed"> <input type="text" ng-model="feed.title" autofocus> <button title="<?php p($l->t('Cancel')); ?>" - ng-click="cancel(feed.id)" + ng-click="cancel(feed)" class="action-button back-button action"></button> <button title="<?php p($l->t('Save')); ?>" ng-click="feedBusinessLayer.renameFeed(feed.id, feed.title)" @@ -65,8 +65,7 @@ <button class="svg action rename-feed-icon" ng-hide="feed.editing || feed.error" - ng-controller="ItemController" - ng-click="edit(feed.id)" + ng-click="edit(feed)" title="<?php p($l->t('Rename feed')); ?>" oc-tooltip></button> |