From 32dd83fbdec82496fea2db90872d6eed07bb0748 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 23 Jul 2010 18:55:11 +0000 Subject: [PATCH] Fix the primary nav --- common.inc.php | 4 ++++ theme/default/sfiab.css | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/common.inc.php b/common.inc.php index 7a263e8..5696f59 100644 --- a/common.inc.php +++ b/common.inc.php @@ -95,6 +95,10 @@ function taskNavLevel(l1,l2,l3,l4) { else { //only the primary link clicked, so show the secondary, and thats it. $("#secondarymenu").load("/nav.php?level=1&id="+l1,null,function() { + + $(".primarynav-selected").removeClass("primarynav-selected"); + $("#primary_nav_"+l1).addClass("primarynav-selected"); + //show the secondary $("#secondarymenu").show(); //and hide the tertiary diff --git a/theme/default/sfiab.css b/theme/default/sfiab.css index 1f91d3c..5db09a2 100644 --- a/theme/default/sfiab.css +++ b/theme/default/sfiab.css @@ -252,10 +252,11 @@ ul.secondarynav li.secondarynav-selected a { } ul.tertiarynav { + font-size: 0.9em; } ul.tertiarynav li a { - color: red; + } .tertiarylinknav-selected a {