TUAG- various tune ups to HTML,CSS

This commit is contained in:
useradvocate 2010-09-09 20:13:29 +00:00
parent eef65869bb
commit 5dab48e574

View File

@ -2,13 +2,13 @@ function taskNavLevel(l1,l2,l3,l4) {
if(l2) {
//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
$("#secondarymenu").load(config.SFIABDIRECTORY+"/nav.php?level=1&id="+l1,null,function() {
$("#secondarymenu").show();
$("#division-menu").load(config.SFIABDIRECTORY+"/nav.php?level=1&id="+l1,null,function() {
$("#division-menu").show();
// $("#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").show();
$("#topic-menu").show();
$(".primarynav-selected").removeClass("primarynav-selected");
$("#primary_nav_"+l1).addClass("primarynav-selected");
@ -30,15 +30,15 @@ function taskNavLevel(l1,l2,l3,l4) {
}
else {
//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");
$("#primary_nav_"+l1).addClass("primarynav-selected");
//show the secondary
$("#secondarymenu").show();
$("#division-menu").show();
//and hide the tertiary
// $("#tertiarymenu").hide();
// $("#topic-menu").hide();
});
}