From d0bc81f8d2ff65833135e5d8e3485eb581a727a1 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 22 Oct 2017 21:01:58 +0200 Subject: do not show seen notifys in notifications - show them in mod notifications instead. Update notifications count also on notifications updates --- view/js/main.js | 1 + view/tpl/notify.tpl | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'view') diff --git a/view/js/main.js b/view/js/main.js index b4c2bcf5d..882f50e8a 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -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); diff --git a/view/tpl/notify.tpl b/view/tpl/notify.tpl index ae6e160b1..b5bccc8a4 100755 --- a/view/tpl/notify.tpl +++ b/view/tpl/notify.tpl @@ -1,3 +1,10 @@ -
- {{$item_text}} {{$item_when}} +
+ {{if ! $item_seen}} + {{$new}} + {{/if}} + + + {{$item_text}}
+ {{$item_when}} +
-- cgit v1.2.3