]> git.mxchange.org Git - friendica.git/commitdiff
one more attempt
authorfriendica <info@friendica.com>
Sun, 26 Feb 2012 01:07:38 +0000 (17:07 -0800)
committerfriendica <info@friendica.com>
Sun, 26 Feb 2012 01:07:38 +0000 (17:07 -0800)
js/main.js

index 515bd0fd318bece1f5df31edbec53f3000073681..a5d1214cb1c5c84de6e9f0538298b978f5ca31bf 100755 (executable)
 
                        var eNotif = $(data).find('notif')
                        notif = eNotif.attr('count');
-                       if (notif>0){
+                       if (notif>=0){
                                $("#nav-notifications-linkmenu").addClass("on");
                                nnm = $("#nav-notifications-menu");
                                
                                //                              $("#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');