diff options
Diffstat (limited to 'querywindow.php')
-rw-r--r-- | querywindow.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/querywindow.php b/querywindow.php index 1d16bfcf0d..e6d8a1ba4c 100644 --- a/querywindow.php +++ b/querywindow.php @@ -184,11 +184,13 @@ if (PMA_isValid($_REQUEST['init'])) { ); } // always set focus to the textarea -$js_events[] = array( - 'object' => 'window', - 'event' => 'load', - 'function' => 'PMA_querywindowSetFocus', -); +if ($querydisplay_tab == 'sql' || $querydisplay_tab == 'full') { + $js_events[] = array( + 'object' => 'window', + 'event' => 'load', + 'function' => 'PMA_querywindowSetFocus', + ); +} /** * start HTTP/HTML output |