From dbc5ecfe572b0dc11bab277dcbe24541cdd4e858 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Thu, 8 Sep 2011 10:12:20 +0200 Subject: [PATCH] light notifications menu icon on new notifs --- js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 328b1f231..452cb8451 100644 --- a/js/main.js +++ b/js/main.js @@ -97,9 +97,10 @@ var eNotif = $(data).find('notif') notif = eNotif.attr('count'); if (notif>0){ + $("#nav-notifications-linkmenu").addClass("on"); nnm = $("#nav-notifications-menu"); nnm.html(""); - nnm.attr('popup','true'); + //nnm.attr('popup','true'); eNotif.children("note").each(function(){ e = $(this); text = e.text().format(""+e.attr('name')+""); @@ -107,6 +108,7 @@ nnm.append(html); }); } else { + $("#nav-notifications-linkmenu").removeClass("on"); $("#nav-notifications-menu").html(notifications_empty); } if(notif == 0) { notif = ''; $('#notify-update').removeClass('show') } else { $('#notify-update').addClass('show') }