Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14 | pmbaty | 1 | function SetDisplay(RowClass, DisplayVal) { |
2 | var Rows = document.getElementsByTagName("tr"); |
||
3 | for (var i = 0; i < Rows.length; ++i) { |
||
4 | if (Rows[i].className == RowClass) { |
||
5 | Rows[i].style.display = DisplayVal; |
||
6 | } |
||
7 | } |
||
8 | } |
||
9 | |||
10 | function CopyCheckedStateToCheckButtons(SummaryCheckButton) { |
||
11 | var Inputs = document.getElementsByTagName("input"); |
||
12 | for (var i = 0; i < Inputs.length; ++i) { |
||
13 | if (Inputs[i].type == "checkbox") { |
||
14 | if (Inputs[i] != SummaryCheckButton) { |
||
15 | Inputs[i].checked = SummaryCheckButton.checked; |
||
16 | Inputs[i].onclick(); |
||
17 | } |
||
18 | } |
||
19 | } |
||
20 | } |
||
21 | |||
22 | function returnObjById(id) { |
||
23 | if (document.getElementById) |
||
24 | var returnVar = document.getElementById(id); |
||
25 | else if (document.all) |
||
26 | var returnVar = document.all[id]; |
||
27 | else if (document.layers) |
||
28 | var returnVar = document.layers[id]; |
||
29 | return returnVar; |
||
30 | } |
||
31 | |||
32 | var NumUnchecked = 0; |
||
33 | |||
34 | function ToggleDisplay(CheckButton, ClassName) { |
||
35 | if (CheckButton.checked) { |
||
36 | SetDisplay(ClassName, ""); |
||
37 | if (--NumUnchecked == 0) { |
||
38 | returnObjById("AllBugsCheck").checked = true; |
||
39 | } |
||
40 | } else { |
||
41 | SetDisplay(ClassName, "none"); |
||
42 | NumUnchecked++; |
||
43 | returnObjById("AllBugsCheck").checked = false; |
||
44 | } |
||
45 | } |