1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 08:06:59 +02:00

Autofocus SQL textarea

This commit is contained in:
Jakub Vrana
2010-05-20 22:50:35 +02:00
parent 8f0c2608cc
commit bfff649905

View File

@@ -137,6 +137,7 @@ if ($_POST) {
$q = $history[$_GET["history"]];
}
textarea("query", $q, 20);
echo ($_POST ? "" : "<script type='text/javascript'>document.getElementsByTagName('textarea')[0].focus();</script>\n");
?>
<p>
<input type="hidden" name="token" value="<?php echo $token; ?>">