diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-12-19 15:17:39 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2013-12-19 15:17:39 +0100 |
commit | 1e950def44b1c2b5cbf51ddaf02af6bbd28215a0 (patch) | |
tree | c62ba57ac31e0de8f1505431f23612bbe76f9d66 /templates | |
parent | 6dc8dad23eea121989e0a89a67e92091802857a0 (diff) |
mark read when clicked anywhere on feed item
Diffstat (limited to 'templates')
-rw-r--r-- | templates/part.items.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/templates/part.items.php b/templates/part.items.php index a0c0c3cc4..b4049a270 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -4,7 +4,8 @@ <li class="feed_item" ng-repeat="item in itemBusinessLayer.getAll() | orderBy:['-id'] " ng-class="{ read: item.isRead() }" - data-id="{{ item.id }}"> + data-id="{{ item.id }}" + ng-click="itemBusinessLayer.setRead(item.id)"> <h2 class="item_date"> <span class="timeago" title="{{item.pubDate*1000|date:'dd-MM-yyyy'}}"> {{ getRelativeDate(item.pubDate) }} @@ -23,8 +24,7 @@ <h1 class="item_heading">{{ item.title }}</h1> <h1 class="item_title"> - <a ng-click="itemBusinessLayer.setRead(item.id)" - target="_blank" ng-href="{{ item.url }}"> + <a target="_blank" ng-href="{{ item.url }}"> {{ item.title }} </a> </h1> @@ -47,9 +47,7 @@ ?></audio> </div> - <div class="body" - ng-click="itemBusinessLayer.setRead(item.id)" - ng-bind-html-unsafe="item.body"> + <div class="body" ng-bind-html-unsafe="item.body"> </div> <div class="bottom_utils"> |