summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2016-04-18 21:18:13 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2016-04-18 21:18:13 +0200
commitd538613b60ea2c5bff4f8e124ecbb8dedb528aea (patch)
treebc80120a7aa578f47f4c41ab6af16153a9ea1731 /templates
parent7867824595842ed8078dadbe247b6df4492e0e78 (diff)
Fix #791
Diffstat (limited to 'templates')
-rw-r--r--templates/part.content.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/part.content.php b/templates/part.content.php
index 5c5b2efa6..4da7cbf8d 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -23,8 +23,9 @@
ng-repeat="item in Content.getItems() |
orderBy:[Content.orderBy()] track by item.id"
ng-mouseup="Content.markRead(item.id)"
- ng-click="Content.markRead(item.id)"
- ng-class="{read: !item.unread, open: item.show}"
+ ng-click="Content.markRead(item.id); Content.setItemActive(item.id)"
+ news-on-active="Content.setItemActive(item.id)"
+ ng-class="{read: !item.unread, open: item.show, active: Content.isItemActive(item.id)}"
data-id="{{ ::item.id }}">
<div class="utils" ng-click="Content.toggleItem(item)">