rfe #2963310 [interface] Focus TEXTAREA "sql_query" on click on "SQL" link

This commit is contained in:
Herman van Rink
2010-03-09 16:02:57 +00:00
parent 9c73fec8a0
commit 4a02231ea2
2 changed files with 7 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #2954916 [interface] Do not insert doc links to not formatted SQL.
+ [lang] Chinese Simplified update, thanks to Shanyan Baishui - rimyxp
+ [lang] Turkish update, thanks to Burak Yavuz
+ rfe #2963310 [interface] Focus TEXTAREA "sql_query" on click on "SQL" link
3.3.1.0 (not yet released)
- bug #2941037 [core] Database structure not sorted by table correctly

View File

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