Browse Source

修复弹窗按钮启用禁用方法无效问题(I7L0WA)

pull/445/MERGE
RuoYi 1 year ago
parent
commit
bf58ce6067
  1. 4
      ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

4
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js

@ -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…
Cancel
Save