mirror of https://gitee.com/y_project/RuoYi.git
优化$.modal.close方法
parent
59a45cf5ad
commit
5d73b1d8de
|
@ -722,9 +722,13 @@ var table = {
|
|||
$.modal.alert(content, modal_status.WARNING);
|
||||
},
|
||||
// 关闭窗体
|
||||
close: function () {
|
||||
var index = parent.layer.getFrameIndex(window.name);
|
||||
parent.layer.close(index);
|
||||
close: function (index) {
|
||||
if($.common.isEmpty(index)){
|
||||
var index = parent.layer.getFrameIndex(window.name);
|
||||
parent.layer.close(index);
|
||||
} else {
|
||||
layer.close(index);
|
||||
}
|
||||
},
|
||||
// 关闭全部窗体
|
||||
closeAll: function () {
|
||||
|
|
Loading…
Reference in New Issue