Make table rows clickable using javascript. Use this functionality in the top X lists and in the test results table
This commit is contained in:
19
scripts.js
19
scripts.js
@@ -18,3 +18,22 @@ function deleteURL(text, url) {
|
||||
self.location = url;
|
||||
}
|
||||
}
|
||||
|
||||
function ChangeTrColor(tableRow, bHighLight, sHighlightColor, sInactiveColor)
|
||||
{
|
||||
if (bHighLight)
|
||||
{
|
||||
tableRow.style.backgroundColor = sHighlightColor;
|
||||
tableRow.style.cursor = "hand";
|
||||
}
|
||||
else
|
||||
{
|
||||
tableRow.style.backgroundColor = sInactiveColor;
|
||||
tableRow.style.cursor = "pointer";
|
||||
}
|
||||
}
|
||||
|
||||
function DoNav(sUrl)
|
||||
{
|
||||
document.location.href = sUrl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user