|
友情提示:请在本地修改测试,成功后再上传,以免误操作造成损失。虽然Hack一般情况下不会出错,但难免在安装的时候步骤细节出错。
以下是for PW 4.0.1的hack,如果需要for PW3.0.1的Hack,请参见二楼
本Hack所要修改的文件有:
/data/wind_editor.js
/template/wind/fastpost.htm
修改步骤
打开/data/wind_editor.js
找到
◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆
function _submit(){
if(document.FORM.atc_title.value==''){
alert('标题为空');
document.FORM.atc_title.focus();
return;
}
checkCnt();
document.FORM.submit();
}
function quickpost(event)
{
if((event.ctrlKey && event.keyCode == 13)||(event.altKey && event.keyCode == 83))
{
cnt++;
if(cnt==1){
this.document.FORM.submit();
}else{
alert('Submission Processing. Please Wait');
}
}
}
◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆
替换为
◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆
function _submit(){
if(document.FORM.atc_title.value==''){
alert('标题为空');
document.FORM.atc_title.focus();
return;
}
checkCnt();
this.document.FORM.Submit.value="正在提交中";
this.document.FORM.Submit.disabled="disabled";
document.FORM.submit();
}
function quickpost(event)
{
if((event.ctrlKey && event.keyCode == 13)||(event.altKey && event.keyCode == 83))
{
/*
cnt++;
if(cnt==1){
this.document.FORM.submit();
}else{
alert('Submission Processing. Please Wait');
}
*/
this.document.FORM.Submit.click();
}
}
◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆
打开/template/wind/fastpost.htm
找到
◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆
function checkCnt(){
cnt++;
if (cnt==1) return true;
alert('Submission Processing. Please Wait');
return false;
}
function quickpost(event)
{
if((event.ctrlKey && event.keyCode == 13)||(event.altKey && event.keyCode == 83))
{
cnt++;
if (cnt==1){
this.document.FORM.submit();
}else{
alert('Submission Processing. Please Wait');
}
}
}
◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆
替换为
◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆
function checkCnt(){
this.document.FORM.Submit.value="正在提交中";
this.document.FORM.Submit.disabled="disabled";
return true;
/*
cnt++;
if (cnt==1) return true;
alert('Submission Processing. Please Wait');
return false;
*/
}
function quickpost(event)
{
if((event.ctrlKey && event.keyCode == 13)||(event.altKey && event.keyCode == 83))
{
/*
cnt++;
if (cnt==1){
this.document.FORM.submit();
}else{
alert('Submission Processing. Please Wait');
}
*/
this.document.FORM.Submit.click();
}
}
◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆ |
|