aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-17 15:18:06 -0800
committerfriendica <info@friendica.com>2014-11-17 15:18:06 -0800
commitc0ad4763b30238aead8f1187efd669080c52a149 (patch)
tree7d9330457593d90f540004d09087fde59f2b4429 /view
parentb11ed7f88e4683315a4f5aa02692cb61facf32a7 (diff)
downloadvolse-hubzilla-c0ad4763b30238aead8f1187efd669080c52a149.tar.gz
volse-hubzilla-c0ad4763b30238aead8f1187efd669080c52a149.tar.bz2
volse-hubzilla-c0ad4763b30238aead8f1187efd669080c52a149.zip
add unseen count and way to mark unseen to list mode. Also fix automatic mark of unseen so as to work with list mode.
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js7
-rwxr-xr-xview/tpl/conv_list.tpl3
2 files changed, 9 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js
index bec35ba72..9b5c1b1b2 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -180,6 +180,13 @@
timer = setTimeout(NavUpdate,2000);
}
+ function markItemRead(itemId) {
+ $.get('ping?f=&markItemRead='+itemId);
+ $('.unseen-wall-indicator-'+itemId).hide();
+ }
+
+
+
var src = null;
var prev = null;
var livetime = null;
diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl
index 71554a9b3..b9a966e93 100755
--- a/view/tpl/conv_list.tpl
+++ b/view/tpl/conv_list.tpl
@@ -164,7 +164,8 @@
{{/if}}
</div>
<div class="clear"></div>
- <div class="wall-item-list-comments"><a href="{{$item.llink}}">{{$item.comment_count_txt}}</a></div>
+ <div class="wall-item-list-comments"><a href="{{$item.llink}}">{{$item.comment_count_txt}}{{if $item.unseen_comments}}
+<span class="unseen-wall-indicator-{{$item.id}}">, {{$item.list_unseen_txt}}{{/if}}</span></a>{{if $item.unseen_comments}}<span class="unseen-wall-indicator-{{$item.id}}">&nbsp;&nbsp;&nbsp;<button class="btn btn-default" title="{{$item.markseen}}" onclick="markItemRead({{$item.id}}); return false;"><i class="icon-check"></i></span>{{/if}}</div>
</div>
<div class="wall-item-wrapper-end"></div>
<div class="wall-item-outside-wrapper-end {{$item.indent}}" ></div>