From 9047840ec2a124f8bf9c9263c42579e78a9f6516 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Mon, 23 Jan 2012 09:23:37 +0100 Subject: [PATCH] nav: fix "See all notifications" --- include/nav.php | 2 +- js/main.js | 3 ++- view/nav.tpl | 2 +- view/theme/testbubble/nav.tpl | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/nav.php b/include/nav.php index 36a3edd2a2..95dd37ba6c 100755 --- a/include/nav.php +++ b/include/nav.php @@ -116,7 +116,7 @@ function nav(&$a) { if($_SESSION['page_flags'] == PAGE_NORMAL) { $nav['introductions'] = array('notifications/intros', t('Introductions'), "", t('Friend Requests')); $nav['notifications'] = array('notifications', t('Notifications'), "", t('Notifications')); - $nav['notifications_all']=array('notifications/network', t('See all notifications', "", "")); + $nav['notifications']['all']=array('notifications/network', t('See all notifications', "", "")); } diff --git a/js/main.js b/js/main.js index a156dbadd1..4cb278ee87 100755 --- a/js/main.js +++ b/js/main.js @@ -88,6 +88,7 @@ /* notifications template */ var notifications_tpl= unescape($("#nav-notifications-template[rel=template]").html()); + var notifications_all = unescape($('
').append( $("#nav-notifications-see-all").clone() ).html()); //outerHtml hack var notifications_empty = unescape($("#nav-notifications-menu").html()); /* nav update event */ @@ -116,7 +117,7 @@ $("#nav-notifications-linkmenu").addClass("on"); nnm = $("#nav-notifications-menu"); - nnm.html("
  • Show All Notifications
  • "); + nnm.html(notifications_all); //nnm.attr('popup','true'); eNotif.children("note").each(function(){ diff --git a/view/nav.tpl b/view/nav.tpl index 9831260b30..a5d8459874 100755 --- a/view/nav.tpl +++ b/view/nav.tpl @@ -43,7 +43,7 @@ diff --git a/view/theme/testbubble/nav.tpl b/view/theme/testbubble/nav.tpl index bb4da22cb3..acbea5bf84 100755 --- a/view/theme/testbubble/nav.tpl +++ b/view/theme/testbubble/nav.tpl @@ -9,7 +9,7 @@ {{ if $nav.notifications }}{{ endif }} {{ if $nav.messages }}{{ endif }}