点击空白处关闭弹窗,加载结束JS:
var timer1 = setInterval(function(){
console.log("还没打开弹窗");
if($(".fr-core-window-mask").length>0){
$(".fr-core-window-mask").on("click",function(){
window.FR.closeDialog();
//window.FR.destroyDialog();
});
clearInterval(timer1);
console.log("已打开弹窗,取消定时");
}
},1000);
隐藏遮盖层,加载结束JS:
var timer1 = setInterval(function(){
if($(".fr-core-window-mask").length>0){
$(".fr-core-window-mask").css({"display":"none"});
}
},1000);
iframe打开弹窗
if($("#mytanchuang").length<=0){
var $iframe = $("
$iframe.attr("src", "${servletURL}?reportlet=WorkBook1.cpt&op=write");//报表
var o = {
title:"弹窗标题" ,
width : 600,height: 400
};
FR.showDialog(o.title, o.width, o.height, $iframe,o);
}else{
$("#mytanchuang").attr("src", "${servletURL}?reportlet=WorkBook1.cpt&op=write");//报表
}