From: friendica Date: Sun, 26 Feb 2012 01:07:38 +0000 (-0800) Subject: one more attempt X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9b6afc2a38cc00d3fabfbb90277665df820c05a6;p=friendica.git one more attempt --- diff --git a/js/main.js b/js/main.js index 515bd0fd31..a5d1214cb1 100755 --- a/js/main.js +++ b/js/main.js @@ -114,7 +114,7 @@ var eNotif = $(data).find('notif') notif = eNotif.attr('count'); - if (notif>0){ + if (notif>=0){ $("#nav-notifications-linkmenu").addClass("on"); nnm = $("#nav-notifications-menu"); @@ -132,7 +132,7 @@ // $("#nav-notifications-linkmenu").removeClass("on"); // $("#nav-notifications-menu").html(notifications_empty); } - if(notif == 0) { /* notif = ''; $('#notify-update').removeClass('show') */ } else { $('#notify-update').addClass('show') } + if(notif == 0) { notif = ''; $('#notify-update').removeClass('show') } else { $('#notify-update').addClass('show') } $('#notify-update').html(notif); var eSysmsg = $(data).find('sysmsgs');