Permalink
Browse files

Don't autofocus on buttons

  • Loading branch information...
haraldpdl committed Sep 14, 2010
1 parent 7843c9e commit eb24318ead66422e5341b4106550b9a22afe6bd6
Showing with 1 addition and 0 deletions.
  1. +1 −0 catalog/admin/includes/general.js
@@ -8,6 +8,7 @@ function SetFocus() {
if ( (field.elements[i].type != "image") &&
(field.elements[i].type != "hidden") &&
(field.elements[i].type != "reset") &&
+ (field.elements[i].type != "button") &&
(field.elements[i].type != "submit") ) {
document.forms[f].elements[i].focus();

0 comments on commit eb24318

Please sign in to comment.