mirror of https://gitee.com/stylefeng/guns
【func.js】修改弹窗esc关闭
parent
430506239a
commit
5e4827a6cd
|
@ -91,6 +91,7 @@ layui.define(['jquery', 'layer', 'admin', 'table'], function (exports) {
|
||||||
//按键监听esc关闭对话框
|
//按键监听esc关闭对话框
|
||||||
$(window).keydown(function (event) {
|
$(window).keydown(function (event) {
|
||||||
if (event.keyCode === 27) {
|
if (event.keyCode === 27) {
|
||||||
|
//admin.closeThisDialog();
|
||||||
parent.layer.close(thisIndex)
|
parent.layer.close(thisIndex)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue