mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 17:14:07 +02:00
Better auto-focus
This commit is contained in:
@@ -105,7 +105,7 @@ if ($fields) {
|
||||
}
|
||||
echo ($update
|
||||
? "<input type='submit' name='delete' value='" . lang('Delete') . "' onclick=\"return confirm('" . lang('Are you sure?') . "');\">\n"
|
||||
: "<script type='text/javascript'>document.getElementById('form').elements[0].focus();</script>\n"
|
||||
: "<script type='text/javascript'>document.getElementById('form').getElementsByTagName('td')[1].firstChild.focus();</script>\n"
|
||||
);
|
||||
?>
|
||||
</form>
|
||||
|
Reference in New Issue
Block a user