Focus SQL query area after dom is ready.
This commit is contained in:
@@ -1725,5 +1725,6 @@ $(document).ready(function(){
|
|||||||
insertQuery(evt.target.id);
|
insertQuery(evt.target.id);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
$('#sqlquery').focus();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
Reference in New Issue
Block a user