File: tree_hide.js

package info (click to toggle)
phpldapadmin 1.1.0.5-6%2Blenny2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,008 kB
  • ctags: 3,949
  • sloc: php: 17,735; xml: 1,532; sh: 388; makefile: 46
file content (27 lines) | stat: -rw-r--r-- 771 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
var current;

function tree_unhide(whichLayer,old) {
	if (current == null) current = old;
	var oldtree = document.getElementById('SID_'+current).style;
	oldtree.display = 'none';

	if (document.getElementById) {
		// this is the way the standards work
		var newtree = document.getElementById(whichLayer).value;
		var newtree_div = document.getElementById('SID_'+newtree).style;
		newtree_div.display = 'block';

/*
	} else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display ? '':'block';

	} else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display ? '':'block';
*/
	}
	current = newtree;
}