forked from science-ation/science-ation
Fix the primary nav
This commit is contained in:
parent
d871810065
commit
32dd83fbde
@ -95,6 +95,10 @@ function taskNavLevel(l1,l2,l3,l4) {
|
|||||||
else {
|
else {
|
||||||
//only the primary link clicked, so show the secondary, and thats it.
|
//only the primary link clicked, so show the secondary, and thats it.
|
||||||
$("#secondarymenu").load("<?=$config['SFIABDIRECTORY']?>/nav.php?level=1&id="+l1,null,function() {
|
$("#secondarymenu").load("<?=$config['SFIABDIRECTORY']?>/nav.php?level=1&id="+l1,null,function() {
|
||||||
|
|
||||||
|
$(".primarynav-selected").removeClass("primarynav-selected");
|
||||||
|
$("#primary_nav_"+l1).addClass("primarynav-selected");
|
||||||
|
|
||||||
//show the secondary
|
//show the secondary
|
||||||
$("#secondarymenu").show();
|
$("#secondarymenu").show();
|
||||||
//and hide the tertiary
|
//and hide the tertiary
|
||||||
|
@ -252,10 +252,11 @@ ul.secondarynav li.secondarynav-selected a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ul.tertiarynav {
|
ul.tertiarynav {
|
||||||
|
font-size: 0.9em;
|
||||||
|
|
||||||
}
|
}
|
||||||
ul.tertiarynav li a {
|
ul.tertiarynav li a {
|
||||||
color: red;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tertiarylinknav-selected a {
|
.tertiarylinknav-selected a {
|
||||||
|
Loading…
Reference in New Issue
Block a user