mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 08:34:20 +02:00
Autofocus SQL textarea
This commit is contained in:
@@ -137,6 +137,7 @@ if ($_POST) {
|
|||||||
$q = $history[$_GET["history"]];
|
$q = $history[$_GET["history"]];
|
||||||
}
|
}
|
||||||
textarea("query", $q, 20);
|
textarea("query", $q, 20);
|
||||||
|
echo ($_POST ? "" : "<script type='text/javascript'>document.getElementsByTagName('textarea')[0].focus();</script>\n");
|
||||||
?>
|
?>
|
||||||
<p>
|
<p>
|
||||||
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
<input type="hidden" name="token" value="<?php echo $token; ?>">
|
||||||
|
Reference in New Issue
Block a user