forked from science-ation/science-ation
TUAG- various tune ups to HTML,CSS
This commit is contained in:
parent
eef65869bb
commit
5dab48e574
14
js/nav.js
14
js/nav.js
@ -2,13 +2,13 @@ function taskNavLevel(l1,l2,l3,l4) {
|
|||||||
if(l2) {
|
if(l2) {
|
||||||
//we have a secondary click, which implies we also have a primary nav selected
|
//we have a secondary click, which implies we also have a primary nav selected
|
||||||
//we may or may not have l3 or l4 though, so they are handled separately below
|
//we may or may not have l3 or l4 though, so they are handled separately below
|
||||||
$("#secondarymenu").load(config.SFIABDIRECTORY+"/nav.php?level=1&id="+l1,null,function() {
|
$("#division-menu").load(config.SFIABDIRECTORY+"/nav.php?level=1&id="+l1,null,function() {
|
||||||
$("#secondarymenu").show();
|
$("#division-menu").show();
|
||||||
|
|
||||||
// $("#tertiarymenu_accordion").accordion("destroy");
|
// $("#tertiarymenu_accordion").accordion("destroy");
|
||||||
$("#tertiarymenu").load(config.SFIABDIRECTORY+"/nav.php?level=2&id="+l2,null,function() {
|
$("#topic-menu").load(config.SFIABDIRECTORY+"/nav.php?level=2&id="+l2,null,function() {
|
||||||
// $("#tertiarymenu_accordion").accordion({clearStyle: true, collapsible: true, active: false}); //"option", "collapsible", true);
|
// $("#tertiarymenu_accordion").accordion({clearStyle: true, collapsible: true, active: false}); //"option", "collapsible", true);
|
||||||
$("#tertiarymenu").show();
|
$("#topic-menu").show();
|
||||||
|
|
||||||
$(".primarynav-selected").removeClass("primarynav-selected");
|
$(".primarynav-selected").removeClass("primarynav-selected");
|
||||||
$("#primary_nav_"+l1).addClass("primarynav-selected");
|
$("#primary_nav_"+l1).addClass("primarynav-selected");
|
||||||
@ -30,15 +30,15 @@ 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() {
|
$("#division-menu").load(config.SFIABDIRECTORY+"/nav.php?level=1&id="+l1,null,function() {
|
||||||
|
|
||||||
$(".primarynav-selected").removeClass("primarynav-selected");
|
$(".primarynav-selected").removeClass("primarynav-selected");
|
||||||
$("#primary_nav_"+l1).addClass("primarynav-selected");
|
$("#primary_nav_"+l1).addClass("primarynav-selected");
|
||||||
|
|
||||||
//show the secondary
|
//show the secondary
|
||||||
$("#secondarymenu").show();
|
$("#division-menu").show();
|
||||||
//and hide the tertiary
|
//and hide the tertiary
|
||||||
// $("#tertiarymenu").hide();
|
// $("#topic-menu").hide();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user