Don't add target if not in query window.

This commit is contained in:
Michal Čihař
2003-06-06 10:30:45 +00:00
parent 69cefd5bf9
commit bd2826fb12
2 changed files with 3 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ $Source$
* mult_submits.inc.php3: Missing ;. * mult_submits.inc.php3: Missing ;.
* libraries/relation_cleanup.lib.php3, mult_submits.inc.php3, sql.php3: * libraries/relation_cleanup.lib.php3, mult_submits.inc.php3, sql.php3:
Cleanup phpMyAdmin tables also after multi submit actions (RFE #749989). Cleanup phpMyAdmin tables also after multi submit actions (RFE #749989).
* tbl_query_box.php3: Don't add target if not in query window.
2003-06-05 Marc Delisle <lem9@users.sourceforge.net> 2003-06-05 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html: new faq 6.20 about CREATE TEMPORARY TABLES * Documentation.html: new faq 6.20 about CREATE TEMPORARY TABLES

View File

@@ -86,7 +86,7 @@ if ($cfg['QueryFrame'] && (!$cfg['QueryFrameJS'] && !$db || ($cfg['QueryFrameJS'
$queryframe_db_list = ''; $queryframe_db_list = '';
} }
if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) { if ($cfg['QueryFrame'] && $cfg['QueryFrameJS'] && isset($is_inside_querywindow) && $is_inside_querywindow) {
?> ?>
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--
@@ -99,7 +99,7 @@ if ($cfg['QueryFrame'] && $cfg['QueryFrameJS']) {
<?php <?php
} else { } else {
?> ?>
<form method="post" target="phpmain<?php echo md5($cfg['PmaAbsoluteUri']); ?>" action="read_dump.php3"<?php if ($is_upload) echo ' enctype="multipart/form-data"'; ?> onsubmit="return checkSqlQuery(this)" name="sqlform"> <form method="post" action="read_dump.php3"<?php if ($is_upload) echo ' enctype="multipart/form-data"'; ?> onsubmit="return checkSqlQuery(this)" name="sqlform">
<?php <?php
} }
?> ?>