duepuntozero, vier: add unread messages per group

This commit is contained in:
fabrixxm 2015-11-08 18:02:04 +01:00
parent 3c1127e613
commit c700a6fb37
6 changed files with 51 additions and 21 deletions

View file

@ -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')