commit | author | age
|
a18bfa
|
1 |
function show(type) |
Z |
2 |
{ |
|
3 |
count = 0; |
|
4 |
for (var key in methods) { |
|
5 |
var row = document.getElementById(key); |
|
6 |
if ((methods[key] & type) != 0) { |
|
7 |
row.style.display = ''; |
|
8 |
row.className = (count++ % 2) ? rowColor : altColor; |
|
9 |
} |
|
10 |
else |
|
11 |
row.style.display = 'none'; |
|
12 |
} |
|
13 |
updateTabs(type); |
|
14 |
} |
|
15 |
|
|
16 |
function updateTabs(type) |
|
17 |
{ |
|
18 |
for (var value in tabs) { |
|
19 |
var sNode = document.getElementById(tabs[value][0]); |
|
20 |
var spanNode = sNode.firstChild; |
|
21 |
if (value == type) { |
|
22 |
sNode.className = activeTableTab; |
|
23 |
spanNode.innerHTML = tabs[value][1]; |
|
24 |
} |
|
25 |
else { |
|
26 |
sNode.className = tableTab; |
|
27 |
spanNode.innerHTML = "<a href=\"javascript:show("+ value + ");\">" + tabs[value][1] + "</a>"; |
|
28 |
} |
|
29 |
} |
|
30 |
} |