phpcms 后台推送功能 参数无效 dialog.js 行1030 字符5

phpcms 后台推送功能 SCRIPT87: 参数无效 dialog.js, 行1030 字符5

phpcms 后台推送功能弹窗解决办法,不能正常弹出窗口,IE可以弹出一次后就不能在次弹出

错误效果如下:

phpcms 后台推送功能 参数无效 dialog.js 行1030 字符5_第1张图片

解决办法:

找到 您网站根目录/static/js/dialog.js 的1030行代码,把1030行和1031行代码注释掉。就可以正常弹出了,此方法是临时解决办法,具体解决办法可以等待PHPCMS官方的补丁。

修改后代码为:

01// 新增内容后调整位置
02 if (!arguments[1]) {
03 if (that.config.follow) {
04 that.follow(that.config.follow);
05 } else {
06 width = wrap.offsetWidth - width;
07 height = wrap.offsetHeight - height;
08 left = left - width / 2;
09 top = top - height / 2;
10 //wrap.style.left = Math.max(left, 0) + 'px'; 此行隐藏
11 //wrap.style.top = Math.max(top, 0) + 'px'; 此行隐藏
12 };
13 if (cssWidth && cssWidth !== 'auto') {
14 wrap.style.width = wrap.offsetWidth + 'px';
15 };
16 that._autoPositionType();
17 };


From WizNoteTime=2013-03-29 14:48:05


转载于:https://my.oschina.net/ryuhi/blog/731478

你可能感兴趣的:(phpcms 后台推送功能 参数无效 dialog.js 行1030 字符5)