]> git.mxchange.org Git - friendica.git/commitdiff
light notifications menu icon on new notifs
authorFabio Comuni <fabrix.xm@gmail.com>
Thu, 8 Sep 2011 08:12:20 +0000 (10:12 +0200)
committerFabio Comuni <fabrix.xm@gmail.com>
Thu, 8 Sep 2011 08:12:20 +0000 (10:12 +0200)
js/main.js

index 328b1f231ea407e5801b26050c6da3b25099c9de..452cb845140c3400a69f3c1e1ab4e7ea9776d5b5 100644 (file)
                        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("<span class='contactname'>"+e.attr('name')+"</span>");
                                        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') }