You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
827 B
31 lines
827 B
4 months ago
|
function show(type)
|
||
|
{
|
||
|
count = 0;
|
||
|
for (var key in methods) {
|
||
|
var row = document.getElementById(key);
|
||
|
if ((methods[key] & type) != 0) {
|
||
|
row.style.display = '';
|
||
|
row.className = (count++ % 2) ? rowColor : altColor;
|
||
|
}
|
||
|
else
|
||
|
row.style.display = 'none';
|
||
|
}
|
||
|
updateTabs(type);
|
||
|
}
|
||
|
|
||
|
function updateTabs(type)
|
||
|
{
|
||
|
for (var value in tabs) {
|
||
|
var sNode = document.getElementById(tabs[value][0]);
|
||
|
var spanNode = sNode.firstChild;
|
||
|
if (value == type) {
|
||
|
sNode.className = activeTableTab;
|
||
|
spanNode.innerHTML = tabs[value][1];
|
||
|
}
|
||
|
else {
|
||
|
sNode.className = tableTab;
|
||
|
spanNode.innerHTML = "<a href=\"javascript:show("+ value + ");\">" + tabs[value][1] + "</a>";
|
||
|
}
|
||
|
}
|
||
|
}
|