patch #1837691 [query window] js errors, thanks to Victor Volkov

This commit is contained in:
Marc Delisle
2007-11-26 21:44:00 +00:00
parent 7de1c00250
commit a1cb228fe7
2 changed files with 4 additions and 1 deletions

View File

@@ -221,8 +221,10 @@ if (PMA_isValid($_REQUEST['auto_commit'], 'identical', 'true')) {
if (PMA_isValid($_REQUEST['init'])) {
echo 'PMA_querywindowResize();' . "\n";
}
if ($querydisplay_tab == 'sql' || $querydisplay_tab == 'full') {
echo "document.getElementById('sqlquery').focus();" . "\n";
}
?>
document.getElementById('sqlquery').focus();
}
//]]>