Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

No auto-focus with POST

  • Loading branch information...
commit fb7b5ce29ee0eb0ef6903ece842098731fdf3e4d 1 parent efd7b90
@vrana authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 adminer/edit.inc.php
View
5 adminer/edit.inc.php
@@ -103,9 +103,8 @@
echo '<input type="submit" name="insert" value="' . ($update ? lang('Save and continue edit') : lang('Save and insert next')) . "\">\n";
}
}
-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').getElementsByTagName('td')[1].firstChild.focus();</script>\n"
+echo ($update ? "<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")
);
?>
</form>
Please sign in to comment.
Something went wrong with that request. Please try again.