dzxstatic
Version:
The static files of Discuz! X
1 lines • 2.51 kB
JavaScript
function modaction(e,t,o,d){if(e){d=d||"forum.php?mod=topicadmin",o=o?"&"+o:"";if(!t&&in_array(e,["delpost","banpost"])){for(var i=0,n=(t="",0);n<$("modactions").elements.length;n++)if($("modactions").elements[n].name.match("topiclist")){i=1;break}}else i=1;i?($("modactions").action=d+"&action="+e+"&fid="+fid+"&tid="+tid+"&handlekey=mods&infloat=yes&nopost=yes"+(t?"&topiclist[]="+t:"")+o+"&r"+Math.random(),showWindow("mods","modactions","post"),BROWSER.ie&&doane(event),hideMenu()):alert("请选择需要操作的帖子")}}function modthreads(e,t){t=t||"";$("modactions").action="forum.php?mod=topicadmin&action=moderate&fid="+fid+"&moderate[]="+tid+"&handlekey=mods&infloat=yes&nopost=yes"+(3!=e&&2!=e?"&from="+tid:""),$("modactions").optgroup.value=e,$("modactions").operation.value=t,hideWindow("mods"),showWindow("mods","modactions","post",0),BROWSER.ie&&doane(event)}function pidchecked(e){if(e.checked){try{var t=document.createElement('<input name="topiclist[]" />')}catch(e){try{(t=document.createElement("input")).name="topiclist[]"}catch(e){return}}t.id="topiclist_"+e.value,t.value=e.value,t.type="hidden",$("modactions").appendChild(t)}else $("modactions").removeChild($("topiclist_"+e.value))}var modclickcount=0;function modclick(e,t){if(e.checked?modclickcount++:modclickcount--,$("mdct").innerHTML=modclickcount,modclickcount>0){var o=fetchOffset(e);$("mdly").style.top=o.top-65+"px",$("mdly").style.left=o.left-215+"px",$("mdly").style.display=""}else $("mdly").style.display="none"}function resetmodcount(){modclickcount=0,$("mdly").style.display="none"}function tmodclick(e){if(e.checked?modclickcount++:modclickcount--,$("mdct").innerHTML=modclickcount,modclickcount>0){for(var t=e.offsetTop;"threadlist"!=(e=e.offsetParent).id;)t+=e.offsetTop;$("mdly").style.top=t-7+"px",$("mdly").style.display=""}else $("mdly").style.display="none"}function tmodthreads(e,t){for(var o=0,d=(t=t||"",0);d<$("moderate").elements.length;d++)if($("moderate").elements[d].name.match("moderate")&&$("moderate").elements[d].checked){o=1;break}o?($("moderate").optgroup.value=e,$("moderate").operation.value=t,hideWindow("mods"),showWindow("mods","moderate","post",0)):alert("请选择需要操作的帖子")}function getthreadclass(){var e=$("fid");e&&ajaxget("forum.php?mod=ajax&action=getthreadclass&fid="+e.value,"threadclass",null,null,null,showthreadclass)}function showthreadclass(){try{$("append_parent").removeChild($("typeid_ctrl_menu"))}catch(e){}simulateSelect("typeid")}loadcss("forum_moderator");