Fix JS error when in query window is not active SQL tab.

This commit is contained in:
Michal Čihař
2003-07-10 09:38:14 +00:00
parent 6afb98dc78
commit 3fd11c4431
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2003-07-10 Michal Cihar <nijel@users.sourceforge.net>
* lang/spanish: Updated, thanks to Daniel Hinostroza (dhinostroza).
* lang/italian: Updated, thanks to Pietro Danesi (danone).
* footer.inc.php3: Fix JS error when in query window is not active SQL
tab.
2003-07-09 Michal Cihar <nijel@users.sourceforge.net>
* libraries/auth/cookie.auth.lib.php3: Fixed broken login with backslash

View File

@@ -41,7 +41,7 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
<?php
if (!isset($error_message) || $error_message == '') {
?>
if (!parent.frames.queryframe.querywindow.document.sqlform.LockFromUpdate.checked) {
if (parent.frames.queryframe.querywindow.document.sqlform.LockFromUpdate && !parent.frames.queryframe.querywindow.document.sqlform.LockFromUpdate.checked) {
parent.frames.queryframe.querywindow.document.querywindow.db.value = "<?php echo (isset($db) ? addslashes($db) : '') ?>";
parent.frames.queryframe.querywindow.document.querywindow.query_history_latest_db.value = "<?php echo (isset($db) ? addslashes($db) : '') ?>";
parent.frames.queryframe.querywindow.document.querywindow.table.value = "<?php echo (isset($table) ? addslashes($table) : '') ?>";