mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 09:04:02 +02:00
No auto-focus with POST
This commit is contained in:
@@ -103,9 +103,8 @@ if ($fields) {
|
|||||||
echo '<input type="submit" name="insert" value="' . ($update ? lang('Save and continue edit') : lang('Save and insert next')) . "\">\n";
|
echo '<input type="submit" name="insert" value="' . ($update ? lang('Save and continue edit') : lang('Save and insert next')) . "\">\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo ($update
|
echo ($update ? "<input type='submit' name='delete' value='" . lang('Delete') . "' onclick=\"return confirm('" . lang('Are you sure?') . "');\">\n"
|
||||||
? "<input type='submit' name='delete' value='" . lang('Delete') . "' onclick=\"return confirm('" . lang('Are you sure?') . "');\">\n"
|
: ($_POST ? "" : "<script type='text/javascript'>document.getElementById('form').getElementsByTagName('td')[1].firstChild.focus();</script>\n")
|
||||||
: "<script type='text/javascript'>document.getElementById('form').getElementsByTagName('td')[1].firstChild.focus();</script>\n"
|
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
</form>
|
</form>
|
||||||
|
Reference in New Issue
Block a user