|
|
|
@ -95,8 +95,11 @@ $.validator.defaults.ignore = ''; //TODO: Would be better if we can apply only f |
|
|
|
}); |
|
|
|
|
|
|
|
_$modal.on('shown.bs.modal', function () { |
|
|
|
//focuses first element if it's a typeable input.
|
|
|
|
//focuses first element if it's a typeable input.
|
|
|
|
var $firstVisibleInput = _$modal.find('input:not([type=hidden]):first'); |
|
|
|
|
|
|
|
_onOpenCallbacks.triggerAll(_publicApi); |
|
|
|
|
|
|
|
if ($firstVisibleInput.hasClass("datepicker")) { |
|
|
|
return; //don't pop-up date pickers...
|
|
|
|
} |
|
|
|
@ -107,7 +110,6 @@ $.validator.defaults.ignore = ''; //TODO: Would be better if we can apply only f |
|
|
|
} |
|
|
|
|
|
|
|
$firstVisibleInput.focus(); |
|
|
|
_onOpenCallbacks.triggerAll(_publicApi); |
|
|
|
}); |
|
|
|
|
|
|
|
var modalClass = abp.modals[options.modalClass]; |
|
|
|
|