fix a js bug

This commit is contained in:
Loïc Chapeaux
2002-02-08 18:21:14 +00:00
parent 975e3b263a
commit 0a71b84862
3 changed files with 10 additions and 8 deletions

View File

@@ -18,8 +18,9 @@ $Source$
expression. expression.
* Documentation.html; tbl_properties.inc.php3: xhtml fix. * Documentation.html; tbl_properties.inc.php3: xhtml fix.
* user_details.php3; mult_submits.inc.php3; tbl_replace.php3; * user_details.php3; mult_submits.inc.php3; tbl_replace.php3;
tbl_properties.php3: tbl_properties.php3, libraries/functions.js: removed tabs and/or trailing
removed tabs and/or trailing spaces. spaces.
* libraries/display_tbl.lib.php3, lines 724-730: fixed a js bug.
2002-02-05 Marc Delisle <lem9@users.sourceforge.net> 2002-02-05 Marc Delisle <lem9@users.sourceforge.net>
* sql.php3, bug 463683 state tracking problem * sql.php3, bug 463683 state tracking problem

View File

@@ -721,12 +721,12 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
if ($disp_direction == 'horizontal') { if ($disp_direction == 'horizontal') {
// loic1: pointer code part // loic1: pointer code part
$on_mouse = ($GLOBALS['cfgBrowsePointerColor'] == '') if ($GLOBALS['cfgBrowsePointerColor'] == '') {
? '' $on_mouse = '';
: ' onmouseover="setPointer(this, \'' . $GLOBALS['cfgBrowsePointerColor'] . '\', \''.$bgcolor.'\')" onmouseout="setPointer(this, \'' . $bgcolor . '\', \''.$bgcolor.'\')"'; } else if ($GLOBALS['cfgBrowseMarkRow'] == '1') {
$on_mouse = ' onmousedown="setPointer(this, \'' . $GLOBALS['cfgBrowsePointerColor'] . '\', \'' . $bgcolor . '\')"';
if ($GLOBALS['cfgBrowseMarkRow'] == '1') { } else {
$on_mouse = ' onmousedown="setPointer(this, \'' . $GLOBALS['cfgBrowsePointerColor'] . '\', \''.$bgcolor.'\')"'; $on_mouse = ' onmouseover="setPointer(this, \'' . $GLOBALS['cfgBrowsePointerColor'] . '\', \'' . $bgcolor . '\')" onmouseout="setPointer(this, \'' . $bgcolor . '\', \'' . $bgcolor . '\')"';
} }
?> ?>
<tr<?php echo $on_mouse; ?>> <tr<?php echo $on_mouse; ?>>

View File

@@ -335,6 +335,7 @@ function setPointer(theRow, thePointerColor, theNormalBgColor)
return true; return true;
} // end of the 'setPointer()' function } // end of the 'setPointer()' function
/** /**
* Checks/unchecks all tables * Checks/unchecks all tables
* *