提交 21f13cd8 编写于 作者: J jlukic

Fix autofocus

上级 6a3fba92
......@@ -521,10 +521,12 @@ $.fn.modal = function(parameters) {
$inputs = $module.filter(':input').filter(':visible'),
$autofocus = $inputs.filter('[autofocus]'),
$input = ($autofocus.length > 0)
? $autofocus
: $inputs
? $autofocus.first()
: $inputs.first()
;
$input.first().focus();
if($input.length > 0) {
$input.focus();
}
}
},
clickaway: function() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册