*skip pointer is allowed by letting blank the color value;
* fixed a bad js command
This commit is contained in:
@@ -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";
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user