bug #1209891, db list not refreshed after a manual DROP DATABASE
This commit is contained in:
@@ -8,6 +8,9 @@ $Source$
|
||||
2005-05-29 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* tbl_change.php: bug #1184325, Label IDs mismatch for ENUM type,
|
||||
thanks to Ryan Schmidt
|
||||
* footer.inc.php: bug #1209891, db list not refreshed when the left
|
||||
frame is positionned on a db, then a manual DROP DATABASE it done
|
||||
on another db
|
||||
|
||||
2005-05-27 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* tbl_properties.inc.php: bug #1205940, current timestamp checkbox
|
||||
|
@@ -30,6 +30,15 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
|
||||
$num_tables_disp = ' (-)';
|
||||
}
|
||||
?>
|
||||
var forceQueryFrameReload = false;
|
||||
<?php
|
||||
// this flag comes from sql.php when we saw a DROP DATABASE
|
||||
if ($is_drop_database) {
|
||||
?>
|
||||
forceQueryFrameReload = true;
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
var dbBoxSetupDone = false;
|
||||
function dbBoxSetup() {
|
||||
if (dbBoxSetupDone != true) {
|
||||
@@ -47,7 +56,7 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
|
||||
}
|
||||
if (parent.frames.queryframe && parent.frames.queryframe.document && parent.frames.queryframe.document.left && parent.frames.queryframe.document.left.lightm_db) {
|
||||
selidx = parent.frames.queryframe.document.left.lightm_db.selectedIndex;
|
||||
if (parent.frames.queryframe.document.left.lightm_db.options[selidx].value == "<?php echo addslashes($db); ?>") {
|
||||
if (parent.frames.queryframe.document.left.lightm_db.options[selidx].value == "<?php echo addslashes($db); ?>" && forceQueryFrameReload == false) {
|
||||
parent.frames.queryframe.document.left.lightm_db.options[selidx].text = "<?php echo addslashes($db) . $num_tables_disp; ?>";
|
||||
} else {
|
||||
parent.frames.queryframe.location.reload();
|
||||
|
Reference in New Issue
Block a user