无法忍受discuz的怠慢态度,亲自操刀修正discuz与google chrome的兼容问题
最近喜欢上用chrome。不过,在chrome下面,discuz总有些问题,今晚抽空在discuz的论坛找了下,无果,也发现很多人对此很着急。遂自己动手,丰衣足食。 对于心急的看官,可以先下载修改后的common.js 到include/js目录下覆盖原来文件(建议先备份一下),然后跑到网站后台更新下缓存即可。 做下修改记录吧: 修正function ajaxpost : 约1169行,针对chrome专门优化了一下。 if(BROWSER.chrome){ var s_00 = $(ajaxframeid).contentWindow.document.documentElement.lastChild.previousSibling.previousSibling.nodeValue; var s_0 = $(ajaxframeid).contentWindow.document.documentElement.lastChild.previousSibling.nodeValue; var s_1 = $(ajaxframeid).contentWindow.document.documentElement.lastChild.nodeValue; s =”; if(s_0 && s_0.indexOf(‘ =0 && s_0.indexOf(‘ <=2){ if(s_0) s += s_0; if(s_1) s += s_1; }else{ if(s_00) s += s_00; if(s_0) s += s_0; if(s_1) s += s_1; } } 修改function showselect:约1573行。 [...]
