focus on first field for all forms

previously, only the add form had focus on first field. Now every form
(add, modifify, selfmodify) have focus on first field.
This commit is contained in:
kakwa 2016-07-10 08:54:59 +02:00
parent b6fd601801
commit abf3d5dea9
1 changed files with 1 additions and 1 deletions

View File

@ -123,9 +123,9 @@ if (fields['${attrid}'] != null) {
};
% endfor
</script>
% endif
<script>
$(document).ready(function() {
$('form:eq(1) *:input[type!=hidden]:first').focus();
});
</script>
% endif