X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fquattro%2Ftheme.php;h=167ebc75383f1e86c13349f38c4a773273da13b5;hb=b4fb951bf9da7e6d9e93acb005ad8995255f9c5e;hp=d89890da0bf934df08ff0ab17a003601407180b6;hpb=efce5ae1b9c142092ae878dded34e83b336d42f8;p=friendica.git diff --git a/view/theme/quattro/theme.php b/view/theme/quattro/theme.php index d89890da0b..167ebc7538 100644 --- a/view/theme/quattro/theme.php +++ b/view/theme/quattro/theme.php @@ -1,7 +1,7 @@ * Maintainer: Fabio * Maintainer: Tobias @@ -18,11 +18,29 @@ $a->page['htmlhead'] .= <<< EOT $(document).ready(function(){ $('nav').bind('nav-update', function(e,data){ var notifCount = $(data).find('notif').attr('count'); + var intro = $(data).find('intro').text(); + var mail = $(data).find('mail').text(); + + console.log(intro,mail); + if (notifCount > 0 ) { Tinycon.setBubble(notifCount); } else { Tinycon.setBubble(''); } + + if (intro>0){ + $("#nav-introductions-link").addClass("on"); + } else { + $("#nav-introductions-link").removeClass("on"); + } + + if (mail>0){ + $("#nav-messages-link").addClass("on"); + } else { + $("#nav-messages-link").removeClass("on"); + } + }); });