Focus SQL query area after dom is ready.

This commit is contained in:
Michal Čihař
2010-07-20 14:14:44 +02:00
parent 318dc4b650
commit 29ccdfc1ff
2 changed files with 1 additions and 6 deletions

View File

@@ -1725,5 +1725,6 @@ $(document).ready(function(){
insertQuery(evt.target.id); insertQuery(evt.target.id);
return false; return false;
}); });
$('#sqlquery').focus();
}); });

View File

@@ -305,12 +305,6 @@ function PMA_sqlQueryFormInsert($query = '', $is_querywindow = false, $delimiter
} }
echo '</div>' . "\n"; echo '</div>' . "\n";
echo '<script type="text/javascript">' . "\n"
.'//<![CDATA[' . "\n"
.'document.getElementById("sqlquery").focus();' . "\n"
.'//]]>' . "\n"
.'</script>' . "\n";
if (count($fields_list)) { if (count($fields_list)) {
echo '<div id="tablefieldscontainer">' . "\n" echo '<div id="tablefieldscontainer">' . "\n"
.'<label>' . __('Columns') . '</label>' . "\n" .'<label>' . __('Columns') . '</label>' . "\n"