fixed a js bug with empty databases

This commit is contained in:
Loïc Chapeaux
2001-12-08 08:13:41 +00:00
parent a6ea8d3321
commit 986054d997
2 changed files with 7 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2001-12-08 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* libraries/left.js, lines 234-240: fixed a js bug with empty databases.
2001-12-07 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* lang/polish.inc.php3: fixed typos thanks to Tomasz Regdos & Jakub Wilk.
* tbl_indexes; tbl_printview.php3; tbl_properties.php3;

View File

@@ -231,10 +231,13 @@ function hilightBase(el, theColor)
if (typeof(whichDb.style) == 'undefined') {
return;
}
else {
else if (whichTables) {
whichDb.style.backgroundColor = theColor;
whichTables.style.backgroundColor = theColor;
}
else {
whichDb.style.backgroundColor = theColor;
}
return true;
} // end of the 'hilightBase()' function