Fix stringsource parsing to that apostrophes don't count as quotes.
[schedulator.git] / schedulator.js
blobde8f2c9f24c6192ca38c9bea038e03fd7b7ac7e3
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++) 
8     {
9         var at = t.rows[i].attributes["milestone"];
10         if (at && at.nodeValue == myclass) 
11             t.rows[i].style[propname] = val;
12     }
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", '');