mirror of https://gitee.com/y_project/RuoYi.git
修复弹窗按钮启用禁用方法无效问题(I7L0WA)
parent
364b471d2b
commit
bf58ce6067
|
@ -992,12 +992,12 @@ var table = {
|
|||
},
|
||||
// 禁用按钮
|
||||
disable: function() {
|
||||
var doc = window.top == window.parent ? window.document : window.parent.document;
|
||||
var doc = window.top == window.parent ? top.window.document : window.parent.document;
|
||||
$("a[class*=layui-layer-btn]", doc).addClass("layer-disabled");
|
||||
},
|
||||
// 启用按钮
|
||||
enable: function() {
|
||||
var doc = window.top == window.parent ? window.document : window.parent.document;
|
||||
var doc = window.top == window.parent ? top.window.document : window.parent.document;
|
||||
$("a[class*=layui-layer-btn]", doc).removeClass("layer-disabled");
|
||||
},
|
||||
// 打开遮罩层
|
||||
|
|
Loading…
Reference in New Issue