diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-10 10:57:35 -0400 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-07-10 10:57:35 -0400 |
commit | af0bf0486c25b7af0b237a33e2c1088924b84d0c (patch) | |
tree | b41cd75fae87d518345aabf25f32e18ebfb1dcde /templates/part.items.php | |
parent | d6532b0418fda7f97e72b6bfdbac2b401055c925 (diff) |
update views when you remove a feed or mark item as read
Diffstat (limited to 'templates/part.items.php')
-rw-r--r-- | templates/part.items.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/part.items.php b/templates/part.items.php index 33bffc8ee..24ca958e9 100644 --- a/templates/part.items.php +++ b/templates/part.items.php @@ -10,12 +10,14 @@ echo '<ul class="accordion">'; foreach($items as $item) { $title = $item->getTitle(); echo '<li>'; + echo '<div data-id="' . $item->getId() . '"'; if ($item->isRead()) { - echo '<div class="title_read">' . $title . '</div>'; + echo ' class="title_read">'; } else { - echo '<div class="title_unread" onClick="News.Feed.markItem(' . $item->getId() . ')">' . $title . '</div>'; + echo ' class="title_unread" onClick="News.Feed.markItem(' . $item->getId() . ')">'; } - echo '<div class="body">' . $item->getBody() . '</div></li>'; + echo $title . '</div><div class="body">' . $item->getBody() . '</div>'; + echo '</li>'; } echo '</ul>'; |