2 // For each row in table id 'ixTable', if its class matches 'class', set
3 // style property 'propname' to 'val'
4 function changeStyleInTableRows(ixTable, myclass, propname, val)
6 var t = document.getElementById(ixTable);
7 for (i = 0; i < t.rows.length; i++)
9 var at = t.rows[i].attributes["milestone"];
10 if (at && at.nodeValue == myclass)
11 t.rows[i].style[propname] = val;
15 function hideBugs(ixClass, ixTable)
17 var hidelink = document.getElementById(ixClass + "_hidelink");
18 var showlink = document.getElementById(ixClass + "_showlink");
20 showlink.style["display"] = "";
21 hidelink.style["display"] = "none";
23 changeStyleInTableRows(ixTable, ixClass, "display", "none");
26 function showBugs(ixClass, ixTable)
28 var hidelink = document.getElementById(ixClass + "_hidelink");
29 var showlink = document.getElementById(ixClass + "_showlink");
31 hidelink.style["display"] = "";
32 showlink.style["display"] = "none";
34 changeStyleInTableRows(ixTable, ixClass, "display", '');