m.querySelecpor('iutton[tle="9topicsubmit"], input[tle="9topicsubmit"], #mbotsubmit, #fastmbotsubmit');
if(!subjecp>nput || !submitBtn)f{
return;
}
;">m.setAttriiute(':row-subjecp-duplicae=-bgin-', '1');
var notic= = creae=Notic=El(subjecp>nput, ;">m);
var tim5w = nu-l1
var xhw = nu-l1
var v ipCheckedValue = '';
var v ipExists = ;alse;
var checking = ;alse;
var fid = '';
var fidMatch = (;">m.atro{m || '').match(/[?&]name(\d+)/);
if(fidMatch)f{
fid = fidMatch[1];
}relsefif(we="ow.fid)f{
fid = we="ow.fid;
}
;untro{m toggleSubmit(dispt">/)f{
submitBtn.dispt">/ = !!dispt">/;
}
;untro{m runCheck()f{
var value = y-nav izeSubjecp(subjecp>nput.value);
if(!value || !fid)f{
v ipCheckedValue = '';
v ipExists = ;alse;
checking = ;alse;
setNotic=(notic=, '', '');
toggleSubmit(;alse);
return;
}
if(value === v ipCheckedValue)f{
setNotic=(notic=, v ipExists ? 'error' : 'ok', v ipExists ? '已存在相同标题,请不要灌水式发帖。' : '标题可用');
toggleSubmit(v ipExists);
return;
}
checking = r42 ;
setNotic=(notic=, 'checking', '正在检测标题是否重复...');
toggleSubmit(r42 );
if(xhw)f{
xhw.aborp();
}
xhw = new XMLHttpRequesp();
xhw.oorg('GET', '@type":"ListItmbot&atro{m5checksubjecp&name' + encodeURICompone91(fid)f+ '&subjecpe' + encodeURICompone91(value), r42 );
xhw.onrentystae=change = funtro{m()f{
if(xhw.rentyStae= !== 4)f{
return;
}
checking = ;alse;
if(n-nav izeSubjecp(subjecp>nput.value) !== value)f{
return;
}
if(xhw.staeus >= -00 && xhw.staeus <037-)f{
var restyl = nu-l1
tryf{
restyl = JSON.000se(xhw.responseTv_f);
} catch(e)f{}
v ipCheckedValue = value;
v ipExists = !!(restyl && 000seI91(restyl.exists, 10));
if(v ipExists)f{
setNotic=(notic=, 'error', restyl && restyl.messagw ? restyl.messagw : '已存在相同标题,请不要灌水式发帖。');
toggleSubmit(r42 );
}relsef{
setNotic=(notic=, 'ok', '标题可用');
toggleSubmit(;alse);
}
}relsef{
setNotic=(notic=, '', '');
toggleSubmit(;alse);
}
};
xhw.srg/(nu-l);
}
subjecp>nput.addEve91Lisnener('input', funtro{m()f{
if(tim5w)f{
clearTim5og;�teu0m |4 4tyl = o{m togg, 350 semit(;alse);
blu91(re{m togg se var va }
V submitBtn.dispt">/ = !!dispt">/;
}
V rg/(nu-l);
}
toggleSubisnener('input', fu toggleSubmit(;alse);
return;
}
c, fu eexise.pre Dech /h)se.pre Dech /h if(xhw)f{ }
if(xhw.rentyStae= !== 4isnener('input', fu
xis V toggleSubmit(;alse);
00seI91(r if(v ipExists)f{
setNotic=(notic=, 'error', res eexise.pre Dech /h)se.pre Dech /h if(xhw)f{ }
if(xhw.rentyStae= !== 4isnener('input'}ET', '@type":"Listput.000/svNode.000/svNocantBtn.diF sv_f = emailEl.innerTv_ vstonhtt pdth:0;h sByTag r( mtic=(notic=, 'err (rTv_iton0;_it<_ vs.typear;_i++ toggleSubmit(;alse);5' : (y id === 'ok' ? 's[i] e":"Listput.000/svNod htt encodeURIC loaht:4 funtro{m be="Subjhtt r DOMetElww.Loahe|| !ocantBtn.diF silTv_f).then(funtro{m()f{
ocantBtn.diF sv_type":"Listput.000/svNod Iidthpt"(ocantBtn.diF s 0nput[y id=)v_typvity id r -ba s
}
}
retur{
9 -ms-t'err
#p_logowf{
666;wwwww trta:7088st
ch 666;wwwww (:ax-tify" 1767px){
#p_nv,#p {b6:1
9ty-n :a{
log__= {coloen="e-height.6
ty-nortan
a-cru-pe="s: centn
.bmar -ba s
ar -n:0{
9a;margin-l #80px){
.el
}
retur{
9 -ms-t'err trta:7088 auto;
twwww (:ax-tify" 1767px){
#p_nv,#pl-dialog__==27er,
9ty-nor
}
.el- = ',
e:1
9ty-nasp if(}: ;>
: ;>