fixed 'mad' db slector

This commit is contained in:
Sebastian Mendel
2006-02-22 15:19:58 +00:00
parent 56da2cc32d
commit 07988a3eb1
2 changed files with 7 additions and 4 deletions

View File

@@ -40,6 +40,7 @@ $Source$
* libraries/dbi/mysqli.dbi.lib.php: workaround for http://bugs.php.net/36007 * libraries/dbi/mysqli.dbi.lib.php: workaround for http://bugs.php.net/36007
* libraries/database_interface.lib.php PMA_DBI_get_tables_full(), left.php: * libraries/database_interface.lib.php PMA_DBI_get_tables_full(), left.php:
added workaround for bug #1436171 Cannot display Capitalised Databases added workaround for bug #1436171 Cannot display Capitalised Databases
* js/querywindow.js: fixed 'mad' db slector
2006-02-21 Michal Čihař <michal@cihar.com> 2006-02-21 Michal Čihař <michal@cihar.com>
* scripts/setup.php: * scripts/setup.php:

View File

@@ -11,14 +11,16 @@ function setDb( new_db ) {
// db has changed // db has changed
//alert( new_db + '(' + new_db.length + ') : ' + db ); //alert( new_db + '(' + new_db.length + ') : ' + db );
if ( window.frames[0].document.getElementById(new_db) == null ) { var old_db = db;
db = new_db;
if ( window.frames[0].document.getElementById(db) == null ) {
// db is unknown, reload complete left frame // db is unknown, reload complete left frame
refreshLeft(); refreshLeft();
} else { } else {
unmarkDbTable(db); unmarkDbTable(old_db);
markDbTable(new_db); markDbTable(db);
} }
db = new_db;
// TODO: add code to expand db in lightview mode // TODO: add code to expand db in lightview mode