|
|
@ -490,6 +490,16 @@ $.fn.modal = function(parameters) { |
|
|
|
.on('click' + eventNamespace, module.event.click) |
|
|
|
; |
|
|
|
} |
|
|
|
if(settings.autofocus) { |
|
|
|
var |
|
|
|
$inputs = $module.find(':input:visible'), |
|
|
|
$autofocus = $inputs.filter('[autofocus]'), |
|
|
|
$input = ($autofocus.size() > 0) |
|
|
|
? $autofocus |
|
|
|
: $inputs |
|
|
|
; |
|
|
|
$input.first().focus(); |
|
|
|
} |
|
|
|
}, |
|
|
|
scrolling: function() { |
|
|
|
$dimmable.addClass(className.scrolling); |
|
|
@ -714,6 +724,8 @@ $.fn.modal.settings = { |
|
|
|
allowMultiple : true, |
|
|
|
detachable : true, |
|
|
|
closable : true, |
|
|
|
autofocus : true, |
|
|
|
|
|
|
|
context : 'body', |
|
|
|
|
|
|
|
duration : 500, |
|
|
|