mirror of https://gitee.com/karson/fastadmin.git
修复当表单中`.layer-footer`有`input:hidden`时,提交按钮无法工作。
parent
c86f89b5d7
commit
69a9de0a4d
|
|
@ -206,7 +206,8 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
|
|||
if ($(this).hasClass("disabled") || $(this).parent().hasClass("disabled")) {
|
||||
return;
|
||||
}
|
||||
$(".btn:eq(" + $(this).index() + ")", layerfooter).trigger("click");
|
||||
var index = footer.find('.btn').index(this);
|
||||
$(".btn:eq(" + index + ")", layerfooter).trigger("click");
|
||||
});
|
||||
|
||||
var titHeight = layero.find('.layui-layer-title').outerHeight() || 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue