*skip pointer is allowed by letting blank the color value;

* fixed a bad js command
This commit is contained in:
Loïc Chapeaux
2001-12-04 23:09:59 +00:00
parent 025cc84a53
commit bb67738e31
2 changed files with 4 additions and 3 deletions

View File

@@ -305,13 +305,14 @@ function checkTransmitDump(theForm, theAction)
*/
function setPointer(theRow, thePointerColor)
{
if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
if (thePointerColor == ''
|| (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined')) {
return false;
}
var row_cells_cnt = theRow.cells.length;
for (var c = 0; c < row_cells_cnt; c++) {
theRow.cells[c].bgColor = thePointerColor;
theRow.cells[c].style.backgroundColor = thePointerColor;
}
return true;