发现FTB-Pro.js中创建链接的代码是这样的
1
FTB_FreeTextBox.prototype.CreateLink
=
function
() {
2 // impliment pro feature of PopUp window
3
4 var linkWin = window.open( "" , " linkWin " , " width=350,height=155 " );
5 if (linkWin) {
6 linkWin.focus();
7 } else {
8 alert( " Please turn off your PopUp blocking software " );
9 return ;
10 }
11
12 linkWin.document.body.innerHTML = '';
13 linkWin.document.open();
14 linkWin.document.write(FTB_LinkPopUpHtml);
15 linkWin.document.close();
16
17 launchParameters = new Object();
18 launchParameters['ftb'] = this ;
19 linkWin.launchParameters = launchParameters;
20 linkWin.load();
21 };
22
2 // impliment pro feature of PopUp window
3
4 var linkWin = window.open( "" , " linkWin " , " width=350,height=155 " );
5 if (linkWin) {
6 linkWin.focus();
7 } else {
8 alert( " Please turn off your PopUp blocking software " );
9 return ;
10 }
11
12 linkWin.document.body.innerHTML = '';
13 linkWin.document.open();
14 linkWin.document.write(FTB_LinkPopUpHtml);
15 linkWin.document.close();
16
17 launchParameters = new Object();
18 launchParameters['ftb'] = this ;
19 linkWin.launchParameters = launchParameters;
20 linkWin.load();
21 };
22
把12行的
linkWin.document.body.innerHTML = '';
注释掉后正常
再看一下,这个JS中有很多地方都是先
linkWin.document.body.innerHTML = '';
.document.open();
FTB也会犯这样的错
另一个BUG就是用ftb.imagegallery.aspx管理上传图片时,上传图片后不能马上看到,要关了上传窗口再打开才能看到。创建目录好像也不行。
最近博客园越来越慢了(教育网.桂林)