This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
phptsmadmin/htdocs/js/menu_hide.js

19 lines
473 B
JavaScript
Raw Normal View History

2011-01-13 14:45:19 +00:00
var current;
/**
* Toggle the displayed menu
*/
function menu_unhide(whichLayer,old) {
if (current == null) current = old;
var oldmenu = document.getElementById('MID_'+current).style;
oldmenu.display = 'none';
if (document.getElementById) {
// this is the way the standards work
var newmenu = document.getElementById(whichLayer).value;
var newmenu_div = document.getElementById('MID_'+newmenu).style;
newmenu_div.display = 'block';
}
current = newmenu;
}