function no_adjust_notice() { hideWindow('div_viewthread_adjust'); setcookie("_adjust_notice_7730757",'1',3600*24*30); } function mod_operation(type,pid){ if(type == "agree" || type == "reject"){ jQuery.post("https://muchong.com/bbs/api.php?ac=adjustkaoyan&in_xmc=1&rd=" + Math.random(), {pid:pid,tid:16246061,modsubmit:1,type:type,ischeck:1}, function (result) { var obj = result; if(obj.code > 0 ){ jQuery("."+type+"_"+pid).html("<a>"+obj.msg+"</a>"); }else{ jQuery("#div_newthread_adjust").show(); jQuery(".type").val(type); jQuery(".pid").val(pid); return false; } }); }else{ submitmod(type,pid); } } function submitmod(type,pid){ var type = type || jQuery(".type").val(); var pid = pid || jQuery(".pid").val(); jQuery.post("https://muchong.com/bbs/api.php?ac=adjustkaoyan&in_xmc=1&rd=" + Math.random(), {pid:pid,tid:16246061,modsubmit:1,type:type}, function (result) { var obj = result; hideWindow('div_newthread_adjust'); jQuery("."+type+"_"+pid).html("<a>"+obj.msg+"</a>"); }); } function through_app(){ var url = "misc.php?action=through&tid=7730757"; ajaxget("https://muchong.com/bbs/misc.php?action=through&tid=7730757", '', '', '', '', through_app_callback); } function through_app_callback(s,x){ document.getElementById("div_newthread_p").style.display="block"; document.getElementById("through_text").innerHTML = s; } function showkarma(fid, tid, pid, postkey) { ajaxget('misc.php?action=karma&fid='+fid+'&tid='+tid+'&pid='+pid+'&score=1&page=1', 'karma_'+pid+'_'+postkey); } function showtag(fid, tid, pid, postkey) { ajaxget('portal.php?view=thread&action=addtag&fid='+fid+'&tid='+tid+'&pid='+pid+'&score=1&page=1', 'karma_'+pid+'_'+postkey); } function showvip(fid, tid, pid, postkey) { ajaxget('misc.php?action=vip&fid='+fid+'&tid='+tid+'&pid='+pid+'&score=1&page=1', 'karma_'+pid+'_'+postkey); } function showtaotie(fid, tid, pid, postkey) { ajaxget('taotie.php?action=addthread&fid='+fid+'&tid='+tid+'&pid='+pid, 'karma_'+pid+'_'+postkey); } function addcredit(tid, pid, postkey) { ajaxget('misc.php?action=addcredit&tid='+tid+'&pid='+pid, 'karma_'+pid+'_'+postkey); } function update_modlog(pid, postnum) { ajaxget('misc.php?action=modlog&fid=428&tid=7730757&pid='+pid+'&page=1'+'&postnum='+postnum, 'modlog_'+pid); } function update_top(pid, subop, postkey, button) { ajaxget('misc.php?action=posttop&page=1&fid=428&tid=7730757&pid='+pid+'&subop='+subop, 'ptop_'+pid+'_'+postkey+'_'+button); } function need_top(pid, subop, postkey, button) { ajaxget('misc.php?action=needtop&page=1&fid=428&tid=7730757&pid='+pid+'&subop='+subop, 'ntop_'+pid+'_'+postkey+'_'+button); } function quick_reply(pid, postkey) { ajaxget('post.php?action=reply&fid=428&tid=7730757&repquote='+pid+'&pid='+pid, 'karma_'+pid+'_'+postkey); defmessage = pid; } function quick_top(pid, postkey) { ajaxget('misc.php?action=quicktop&page=1&fid=428&tid=7730757&pid='+pid, 'qtop_'+pid+'_'+postkey); jQuery('#qtop_'+pid+'_'+postkey).addClass('xmc_yes_ptop'); } function kama_validate(theform) { if(theform.is_epi) { if (!(theform.is_epi[0].checked || theform.is_epi[1].checked)) { alert("请确定该回帖是否解决您的问题"); return false; } } theform.karmasubmit_btn.disabled = true; return true; } function post_log_view() { if($('post_log_more').style.display=='none') { $('post_log_more').style.display=''; } else { $('post_log_more').style.display='none'; } } function help_reply_show() { if($('help_reply_tbody').style.display=='none') { $('help_reply_tbody').style.display=''; } else { $('help_reply_tbody').style.display='none'; } } function closequicemessage(pid) { defmessage = 0; obj = $('__newreply_'+pid); clsdiv(obj); } lazyload('maincontent');