"),n=n.replace(/\r/gi,"
"),n=n.replace(/\n/gi,"
"),n=n.replace(/\t/gi," "),n.replace(/ /gi," ")}function vote_comment(n,t){var i={commentId:n,vote:t,vote:t};addAntiForgeryToken(i);$.ajax({cache:!1,type:"POST",url:"/bbs/humor/CommentVote",data:i,success:function(t){if(t.Status==1)$.notify({message:t.ErrorMsg},{type:"success",placement:{from:"top",align:"center"},delay:1e3,timer:1e3}),$("#c_good_"+n).text(t.Cnt_Like),$("#c_nogood_"+n).text(t.Cnt_UnLike);else if(t.ErrorMsg)if(typeof t.ErrorMsg=="string")$.notify({message:t.ErrorMsg},{type:"warning",placement:{from:"top",align:"center"},delay:1e3,timer:1e3});else{var i="The following errors have occurred:";$.each(t.ErrorMsg,function(n,t){t.errors&&(i+="\n",i+=t.errors.join("\n"))});$.notify({message:t.ErrorMsg},{type:"warning",placement:{from:"top",align:"center"},delay:1e3,timer:1e3})}else t.errorThrown&&alert("Error happened")},error:function(n,t,i){alert(i)}})}