X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=js%2Fmain.js;h=df454afe1fb8bbccdf1aa86fafe9486917da74c0;hb=edb303d44a9109c98bde75ef91b0e40dbe4eeb3b;hp=572a6ebfe16e631c712c61cae1717c0e5d4502a7;hpb=44cb02f6da9fa401e1a2a19b5a280db4cf98e1ab;p=friendica.git diff --git a/js/main.js b/js/main.js index 572a6ebfe1..df454afe1f 100644 --- a/js/main.js +++ b/js/main.js @@ -153,7 +153,7 @@ var notifications_empty = unescape($("#nav-notifications-menu").html()); /* nav update event */ - $('nav').bind('nav-update', function(e,data){; + $('nav').bind('nav-update', function(e,data){ var invalid = $(data).find('invalid').text(); if(invalid == 1) { window.location.href=window.location.href } @@ -203,6 +203,13 @@ var birthdaystoday = $(data).find('birthdays-today').text(); if(birthdaystoday == 0) { $('#birthdays-update').removeClass('notif-birthdays-today') } else { $('#birthdays-update').addClass('notif-birthdays-today') } + $(".sidebar-group-li .notify").removeClass("show"); + $(data).find("group").each(function() { + var gid = this.id; + var gcount = this.innerHTML; + $(".group-"+gid+" .notify").addClass("show").text(gcount); + }); + var eNotif = $(data).find('notif')