aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-10-02 02:46:54 -0700
committerFriendika <info@friendika.com>2011-10-02 02:46:54 -0700
commit8c9a6b0512da3bd73f28989bc179c4e417b267d8 (patch)
treea041443d62be9bb705d21f30e9599ce57abf7d84
parentc72883f06822658491134d41a3b8ab83d9984b86 (diff)
downloadvolse-hubzilla-8c9a6b0512da3bd73f28989bc179c4e417b267d8.tar.gz
volse-hubzilla-8c9a6b0512da3bd73f28989bc179c4e417b267d8.tar.bz2
volse-hubzilla-8c9a6b0512da3bd73f28989bc179c4e417b267d8.zip
fix notifications duepuntozero
-rw-r--r--js/main.js10
-rw-r--r--view/theme/duepuntozero/nav.tpl2
2 files changed, 11 insertions, 1 deletions
diff --git a/js/main.js b/js/main.js
index 896cbeb56..e0694e47f 100644
--- a/js/main.js
+++ b/js/main.js
@@ -95,6 +95,16 @@
if(home == 0) { home = ''; $('#home-update').removeClass('show') } else { $('#home-update').addClass('show') }
$('#home-update').html(home);
+ var intro = $(data).find('intro').text();
+ if(intro == 0) { intro = ''; $('#intro-update').removeClass('show') } else { $('#intro-update').addClass('show') }
+ $('#intro-update').html(intro);
+
+ var mail = $(data).find('mail').text();
+ if(mail == 0) { mail = ''; $('#mail-update').removeClass('show') } else { $('#mail-update').addClass('show') }
+ $('#mail-update').html(mail);
+
+
+
var eNotif = $(data).find('notif')
notif = eNotif.attr('count');
if (notif>0){
diff --git a/view/theme/duepuntozero/nav.tpl b/view/theme/duepuntozero/nav.tpl
index 82ac178e8..efc95bde1 100644
--- a/view/theme/duepuntozero/nav.tpl
+++ b/view/theme/duepuntozero/nav.tpl
@@ -32,7 +32,7 @@
{{ endif }}
{{ if $nav.notifications }}
<a id="nav-notify-link" class="nav-commlink $nav.notifications.2 $sel.notifications" href="$nav.notifications.0" title="$nav.notifications.3" >$nav.notifications.1</a>
- <span id="notify-update" class="nav-ajax-left"></span>
+ <span id="intro-update" class="nav-ajax-left"></span>
{{ endif }}
{{ if $nav.messages }}
<a id="nav-messages-link" class="nav-commlink $nav.messages.2" href="$nav.messages.0 $sel.messages" title="$nav.messages.3" >$nav.messages.1</a>