1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 08:34:20 +02:00

Use autofocus HTML attribute

This commit is contained in:
Jakub Vrana
2025-02-16 18:23:07 +01:00
parent 17974cdf76
commit 874b9ee746
7 changed files with 10 additions and 12 deletions

View File

@@ -26,8 +26,7 @@ if (!$row) {
?>
<form action="" method="post">
<p><input name="name" id="name" value="<?php echo h($row["name"]); ?>" autocapitalize="off">
<?php echo script("focus(qs('#name'));"); ?>
<p><input name="name" autofocus value="<?php echo h($row["name"]); ?>" autocapitalize="off">
<input type="submit" value="<?php echo lang('Save'); ?>">
<?php
if ($_GET["ns"] != "") {