15621857753

phpcmsV9添加内容禁止弹出新窗口的方式

来源:齐鲁建站 栏目:开发教程 阅读: 日期:2023-06-28

其实这个修改很简单,在V9系统中找到admin_common.js中的openwinx方法改为下面的代码就可以了。

其实这个修改很简单,在V9系统中找到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");

    }

}

更新下缓存就生效了~

展开