From 29ccdfc1ff9a44206d9705161f2f7c6ce41a7ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 20 Jul 2010 14:14:44 +0200 Subject: [PATCH] Focus SQL query area after dom is ready. --- js/functions.js | 1 + libraries/sql_query_form.lib.php | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/js/functions.js b/js/functions.js index f03b9e3ff..381f6a6bb 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1725,5 +1725,6 @@ $(document).ready(function(){ insertQuery(evt.target.id); return false; }); + $('#sqlquery').focus(); }); diff --git a/libraries/sql_query_form.lib.php b/libraries/sql_query_form.lib.php index a29f227c4..52de14936 100644 --- a/libraries/sql_query_form.lib.php +++ b/libraries/sql_query_form.lib.php @@ -305,12 +305,6 @@ function PMA_sqlQueryFormInsert($query = '', $is_querywindow = false, $delimiter } echo '' . "\n"; - echo '' . "\n"; - if (count($fields_list)) { echo '
' . "\n" .'' . "\n"