提交者
Karson
!80 修复当表单中`.layer-footer`有其他标签时,提交按钮无法工作。
Merge pull request !80 from Vace/master
正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -206,7 +206,8 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine | @@ -206,7 +206,8 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine | ||
206 | if ($(this).hasClass("disabled") || $(this).parent().hasClass("disabled")) { | 206 | if ($(this).hasClass("disabled") || $(this).parent().hasClass("disabled")) { |
207 | return; | 207 | return; |
208 | } | 208 | } |
209 | - $(".btn:eq(" + $(this).index() + ")", layerfooter).trigger("click"); | 209 | + var index = footer.find('.btn').index(this); |
210 | + $(".btn:eq(" + index + ")", layerfooter).trigger("click"); | ||
210 | }); | 211 | }); |
211 | 212 | ||
212 | var titHeight = layero.find('.layui-layer-title').outerHeight() || 0; | 213 | var titHeight = layero.find('.layui-layer-title').outerHeight() || 0; |
-
请 注册 或 登录 后发表评论