Update modal-manager.js

pull/2014/head
Alper Ebicoglu 6 years ago
parent 7ee60ed51c
commit 3b8f269898

@ -96,7 +96,8 @@ $.validator.defaults.ignore = ''; //TODO: Would be better if we can apply only f
_$modal.on('shown.bs.modal', function () { _$modal.on('shown.bs.modal', function () {
//focuses first typeable element. //focuses first typeable element.
_$modal _$modal
.find('input[type=text]:not(.datepicker),input[type=password],input[type=email],input[type=number],input[type=search],input[type=tel],input[type=url]:first') .find('input[type=text]:not(.datepicker),input[type=password],input[type=email],input[type=number],input[type=search],input[type=tel],input[type=url]')
.first()
.focus(); .focus();
}); });

Loading…
Cancel
Save