*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

@@ -628,7 +628,7 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
$bgcolor = ($foo % 2) ? $GLOBALS['cfgBgcolorOne'] : $GLOBALS['cfgBgcolorTwo'];
?>
<tr onmouseover="setPointer(this, '<?php echo $GLOBALS['cfgPointerColor']; ?>')" onmouseout="setPointer(this, '<?php echo $bgcolor; ?>')">
<tr onmouseover="setPointer(this, '<?php echo $GLOBALS['cfgBrowsePointerColor']; ?>')" onmouseout="setPointer(this, '<?php echo $bgcolor; ?>')">
<?php
echo "\n";

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;