Files
ulthon_admin/extend/base/admin/view/notice/read.js

17 lines
574 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$(function(){
ua.listen();
// 关闭按钮:弹窗内关闭当前 iframe;非弹窗场景(直接以标签页打开)返回上一页
$('#notice-read-close').on('click', function () {
var parentLayer = (window.parent && window.parent.layui) ? window.parent.layui.layer : null;
if (parentLayer) {
var index = parentLayer.getFrameIndex(window.name);
if (index !== undefined && index !== null) {
parentLayer.close(index);
return;
}
}
history.back();
});
})