summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
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)">