diff --git a/common.inc.php b/common.inc.php index ff21677..5785ef5 100644 --- a/common.inc.php +++ b/common.inc.php @@ -78,7 +78,8 @@ function taskNav(id,pid,level) { $("#tertiarymenu_accordion").accordion("destroy"); $("#tertiarymenu_accordion").load("=$config['SFIABDIRECTORY']?>/nav.php?level=2&id="+id,null,function() { - $("#tertiarymenu_accordion").accordion({clearStyle: true}); //"option", "collapsible", true); + $("#tertiarymenu_accordion").accordion({clearStyle: true, collapsible: true, active: false}); //"option", "collapsible", true); + $("#tertiarymenu_accordion").accordion("activate",false); $("#tertiarymenu").show(); }); break; @@ -94,7 +95,7 @@ function taskNavLevel(l1,l2,l3,l4) { $("#tertiarymenu_accordion").accordion("destroy"); $("#tertiarymenu_accordion").load("=$config['SFIABDIRECTORY']?>/nav.php?level=2&id="+l2,null,function() { - $("#tertiarymenu_accordion").accordion({clearStyle: true}); //"option", "collapsible", true); + $("#tertiarymenu_accordion").accordion({clearStyle: true, collapsible: true, active: false}); //"option", "collapsible", true); $("#tertiarymenu").show(); $(".primarynav-selected").removeClass("primarynav-selected"); diff --git a/nav.php b/nav.php index a86f72a..4a78693 100644 --- a/nav.php +++ b/nav.php @@ -30,8 +30,10 @@ case 1: //populate the scecondary menu if($_SESSION['nav']['primary']!=$id) { $_SESSION['nav']['primary']=$id; - unset($_SESSION['nav']['secondary']); } + unset($_SESSION['nav']['secondary']); + unset($_SESSION['nav']['tertiary']); + unset($_SESSION['nav']['tertiarylink']); $q=mysql_query("SELECT * FROM rolestasks WHERE pid='$id' AND level=1 ORDER By ord,task"); echo "