File: sidebar.js

package info (click to toggle)
mono-tools 2.6.2-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,524 kB
  • ctags: 15,712
  • sloc: cs: 85,697; sh: 3,622; makefile: 1,662; xml: 112; sql: 18
file content (28 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (11)
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
28
function SetSelection(b,v)
{
	if (v){
		t = "activeTab";
		tab = "selected";
	} else {
		t = "tab";
		tab = "";
	}

	document.getElementById (b).className = t;
	document.getElementById (b + "Tab").className = tab;
}

function ShowContents ()
{
	SetSelection ("contents", true);
	SetSelection ("index", false);
}

function ShowIndex ()
{
	SetSelection ("contents", false);
	SetSelection ("index", true);
	document.getElementById ('indexInput').focus ();
}