Auto Focus on first item on forms.

This commit is contained in:
Daniel Blankenberg
2013-04-18 13:14:14 -04:00
parent ee90433d59
commit 4f620dd979
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -705,4 +705,9 @@ $(document).ready( function() {
return anchor;
});
// Auto Focus on first item on form
if ( $("*:focus").html() == null ) {
$(":input:not([type=hidden]):visible:enabled:first").focus();
}
});
File diff suppressed because one or more lines are too long