diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-03-08 21:53:54 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-03-08 21:54:06 +0100 |
commit | 69ba0a6f92795483c8e7f75c4c71d146a4d7d2a0 (patch) | |
tree | 93a49950bfd9ebdd3b6f4c9ddedf66d2525759e7 /templates | |
parent | 9d323d22e1e4fb7305766fcd308c56b279146833 (diff) |
dont collapse old item when opening a new one, fix #453
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.items.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/part.items.php b/templates/part.items.php index 4334baf4d..671d53cbc 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -4,7 +4,7 @@ <li class="feed_item" ng-repeat="item in itemBusinessLayer.getAll() | orderBy:['-id'] " - ng-class="{ read: item.isRead(), compact: isCompactView(), open: is.active==item.id}" + ng-class="{ read: item.isRead(), compact: isCompactView(), open: item.active}" data-id="{{ item.id }}" ng-click="itemBusinessLayer.setRead(item.id)"> @@ -23,7 +23,7 @@ {{ getRelativeDate(item.pubDate) }} </span> <h1> - <a ng-click="toggleOpen(item.id)" href="#">{{ item.title }}</a> + <a ng-click="item.active = !item.active" href="#">{{ item.title }}</a> </h1> </div> |