1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-24 18:24:31 +01:00

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

View File

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