discuz 论坛 解决投票后不返回,提示AJAX错误的折中解决办法 common.js错误


官方不解决,我们自己想办法解决吧,在正式版出来之前,解决方案如下:
misc.php行298
修改为:

if(!empty($inajax)) {
showmessage('thread_poll_succeed', "viewthread.php?tid=$tid");
} else {
showmessage('thread_poll_succeed', "viewthread.php?tid=$tid");
}
复制代码
找到文件include/js/common.js,在行890处,即在
行:
if(s != '' && s.indexOf('ajaxerror') != -1) {
复制代码
之上,添加:
if(s==null) {
if(typeof submithandle_mods =='function')
{submithandle_mods(window.location.href);}
else
{location.href=window.location.href}
}
复制代码
大家测试下,我测试可以了。。仅供参考

原文地址:https://www.cnblogs.com/wangjiangze/p/2442007.html