admin 发表于 2014-8-31 15:28:11

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");
    }
}

蜡笔蘑菇 发表于 2014-9-23 10:29:02

感谢站长,谢谢:loveliness::loveliness::loveliness::loveliness:
页: [1]
查看完整版本: PHPCMS 添加内容修改为不弹出新浏览器方法