do not show seen notifys in notifications - show them in mod notifications instead. Update notifications count also on notifications updates
This commit is contained in:
@@ -946,6 +946,7 @@ function notify_popup_loader(notifyType) {
|
||||
|
||||
$("#navbar-" + notifyType + "-menu").html(notifications_all + notifications_mark);
|
||||
$("#nav-" + notifyType + "-menu").html(notifications_all + notifications_mark);
|
||||
$("." + notifyType + "-update").html(data.notify.length);
|
||||
|
||||
$(data.notify).each(function() {
|
||||
html = navbar_notifications_tpl.format(this.notify_link,this.photo,this.name,this.message,this.when,this.hclass);
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
<div class="mb-2 notif-item">
|
||||
<a href="{{$item_link}}"><img src="{{$item_image}}" class="menu-img-1">{{$item_text}} <span class="notif-when">{{$item_when}}</span></a>
|
||||
<div class="mb-4 notif-item">
|
||||
{{if ! $item_seen}}
|
||||
<span class="float-right badge badge-pill badge-success text-uppercase">{{$new}}</span>
|
||||
{{/if}}
|
||||
<a href="{{$item_link}}">
|
||||
<img src="{{$item_image}}" class="menu-img-3">
|
||||
<span class="{{if $item_seen}}text-muted{{/if}}">{{$item_text}}</span><br>
|
||||
<span class="dropdown-sub-text">{{$item_when}}</span>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user