File: sidebar.js

package info (click to toggle)
mono-tools 2.10-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 13,012 kB
  • sloc: cs: 97,611; sh: 3,737; makefile: 1,880; xml: 128; 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 ();
}