From f8cf68ab53f4a287162db556568f8e651f8d42a1 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 9 Nov 2017 12:41:57 +0100 Subject: get the path infos from pathname instead of seperate data attribute --- view/js/main.js | 4 ++-- view/tpl/notifications_widget.tpl | 11 +++++------ 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'view') diff --git a/view/js/main.js b/view/js/main.js index 4cc10bb49..ffea1b75c 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -959,9 +959,9 @@ function notify_popup_loader(notifyType) { $("." + 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,notifyType == 'pubs' ? 'undefined' : this.b64mid); + html = navbar_notifications_tpl.format(this.notify_link,this.photo,this.name,this.message,this.when,this.hclass); $("#navbar-" + notifyType + "-menu").append(html); - html = notifications_tpl.format(this.notify_link,this.photo,this.name,this.message,this.when,this.hclass,notifyType == 'pubs' ? 'undefined' : this.b64mid); + html = notifications_tpl.format(this.notify_link,this.photo,this.name,this.message,this.when,this.hclass); $("#nav-" + notifyType + "-menu").append(html); }); diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index dd4cc6377..1e752c313 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -29,17 +29,16 @@ {{if $module == 'display'}}