修复模板编译兼容问题

This commit is contained in:
zyx0814 2024-09-29 21:58:48 +08:00
parent 48a2b882f7
commit 50af954621
4 changed files with 19 additions and 19 deletions

View File

@ -302,10 +302,10 @@ function submitdata(){
}else{
$.post(MOD_URL+'&op=positionlist&do=geffolderinfo',{'fid':fid},function(data){
try{if(typeof parent.showWindow_callback == 'function') parent.showWindow_callback(fid,data);}catch(e){}
if(parent.$callback){
try{ parent.$callback(fid,data);}catch(e){}
if(parent.{$callback}){
try{ parent.{$callback}(fid,data);}catch(e){}
}else{
try{ opened.$callback(fid,data);}catch(e){}
try{ opened.{$callback}(fid,data);}catch(e){}
}
hide_window();

View File

@ -71,10 +71,10 @@
parent.showWindow_callback(data,'$token');
}
}catch(e){}
if (parent.$callback) {
try{parent.$callback(data, '$token');}catch(e){}
if (parent.{$callback}) {
try{parent.{$callback}(data, '$token');}catch(e){}
} else {
try{ opened.$callback(data, '$token');}catch(e){}
try{ opened.{$callback}(data, '$token');}catch(e){}
}
hide_window();
}
@ -99,10 +99,10 @@
parent.showWindow_callback(data,'$token');
}
}catch(e){}
if (parent.$callback) {
try{parent.$callback(data, '$token');}catch(e){}
if (parent.{$callback}) {
try{parent.{$callback}(data, '$token');}catch(e){}
} else {
try{ opened.$callback(data, '$token');}catch(e){}
try{ opened.{$callback}(data, '$token');}catch(e){}
}
hide_window();
}
@ -135,10 +135,10 @@
}
}catch(e){}
if (parent.$callback) {
try{ parent.$callback(fid, data);}catch(e){}
if (parent.{$callback}) {
try{ parent.{$callback}(fid, data);}catch(e){}
} else {
try{ opened.$callback(fid, data);}catch(e){}
try{ opened.{$callback}(fid, data);}catch(e){}
}
hide_window();
@ -159,13 +159,13 @@
parent.showWindow_callback(data,'$token');
}
}catch(e){}
if (parent.$callback) {
if (parent.{$callback}) {
try{
parent.$callback(data, '$token');
parent.{$callback}(data, '$token');
}catch(e){}
} else {
try{
opened.$callback(data, '$token');
opened.{$callback}(data, '$token');
}catch(e){}
}
hide_window();

View File

@ -372,10 +372,10 @@
return false;
} else {
$.post(MOD_URL + '&op=positionlist&do=geffolderinfo', {'fid': fid}, function (data) {
if (parent.$callback) {
parent.$callback(fid, data);
if (parent.{$callback}) {
parent.{$callback}(fid, data);
} else {
opened.$callback(fid, data);
opened.{$callback}(fid, data);
}
hide_window();
}, 'json')

View File

@ -234,7 +234,7 @@
}
});
try{
$callback(ids,data,'$token');//ids:选中的id列表如[g_1,125,g_32...],g_开头的标识是机构部门或群组
{$callback}(ids,data,'$token');//ids:选中的id列表如[g_1,125,g_32...],g_开头的标识是机构部门或群组
}catch(e){};
hideWindow("$_GET['handlekey']");
return false;