PHPCMS 添加内容修改为不弹出新浏览器方法
找到/statics\js/admin_common.js中的openwinx方法改为下面这样既可function openwinx(url,name,w,h) {
if(!w) w=screen.width-4;
if(!h) h=screen.height-95;
url = url+'&pc_hash='+pc_hash;
if(url.indexOf('m=content&c=content&a=add') > -1 || url.indexOf('m=content&c=content&a=edit') > -1) {
window.open(url,'_blank');
} else {
window.open(url,name,"top=100,left=400,width=" + w + ",height=" + h + ",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no");
}
}
感谢站长,谢谢:loveliness::loveliness::loveliness::loveliness:
页:
[1]