function setGrouptopicstyle(nStyle){ Dyhb.AjaxSend(D.U('group://grouptopic/set_grouptopicstyle?style='+nStyle),'','',completeSet); } function setGrouptopicside(nside){ Dyhb.AjaxSend(D.U('group://grouptopic/set_grouptopicside?side='+nside),'','',completeSet); } function completeSet(data,status){ if(status==1){ setTimeout("window.location.replace(_SELF_);",1000); } } function grouptopicComment(nTid,nCid){ oCommentNewtopics=windsforceAjax(D.U('group://grouptopic/commenttopic_dialog?tid='+nTid+(nCid?'&cid='+nCid:'')),'参与/回复帖子','',completeCommenttopic,'',400,100); } function completeCommenttopic(data,status){ if(addGrouptopiccomment()==false){ return false; } if(status==1){ setTimeout(function(){window.location.href=data.url;},1000); } return true; } function grouptopiceditComment(nCid){ oEditcommentNewtopics=windsforceAjax(D.U('group://grouptopic/editcommenttopic_dialog?cid='+nCid),'编辑帖子','',completeEditcommenttopic,'',400,100); } function completeEditcommenttopic(data,status){ if(addGrouptopiccomment()==false){ return false; } if(status==1){ setTimeout(function(){window.location.href=data.url;},1000); } return true; } $(function(){ editorSimple=loadEditorThin('simple_grouptopiccomment_message'); $(".face-icon").jqfaceedit({txtAreaObj:editorSimple,containerObj:$('#emotion_parentcontainer'),top:25,left:-27}); $('.grouptopiccomment_quickmessage').autoResize({ onResize:function(){ $(this).css({opacity:0.8}); }, animateCallback:function(){ $(this).css({opacity:1}); }, animateDuration:300, extraSpace:0, min:'80px' }); $("#grouptopiccomment_quickmessage").focus(function(){ $("#grouptopiccomment_reply").css("display","block"); }); $('.grouptopiccontent_box').emotionsToHtml(); }); function closeQuickreplay(){ $("#grouptopiccomment_reply").css("display","none"); } function addGrouptopiccommentquick(){ var sCommentMessage=$("#grouptopiccomment_quickmessage").val(); var sCommentName=$("#grouptopiccomment_quickname").val(); var sCommentEmail=$("#grouptopiccomment_quickemail").val(); var sCommentUrl=$("#grouptopiccomment_quickurl").val(); var sCommentSeccode=$("#grouptopiccomment_seccode").val(); if(!sCommentMessage){ windsforceAlert('回复内容不能为空','',3); return false; } var sParameter="ajax=1&grouptopiccomment_message="+encodeURIComponent(sCommentMessage)+"&tid="++'&grouptopiccomment_name='+encodeURIComponent(sCommentName)+'&grouptopiccomment_email='+encodeURIComponent(sCommentEmail)+'&grouptopiccomment_url='+encodeURIComponent(sCommentUrl)+'&seccode='+encodeURIComponent(sCommentSeccode); Dyhb.AjaxSend('',sParameter,'',function(data,status){ if(status==1){ setTimeout(function(){window.location.href=data.url;},1000); } }); } function addGrouptopiccommentSimple(){ sGrouptopiccommentmessage=$.trim(editorSimple.html()); $('#simple_grouptopiccomment_message').val(sGrouptopiccommentmessage); $("#submit_button").attr("disabled", "disabled"); $("#submit_button").val( 'add...' ); if(!sGrouptopiccommentmessage){ windsforceAlert('回复内容不能为空','',3); $("#submit_button").attr("disabled", false); $("#submit_button").val( '发布' ); return false; } $('#simple_comment').val('1'); Dyhb.AjaxSubmit("grouptopiccomment_form",'','',function(data,status){ $('#simple_comment').val('0'); $("#submit_button").attr("disabled", false); $("#submit_button").val( '发布' ); if(status==1){ setTimeout(function(){window.location.href=data.url;},1000); } }); } function showMediaSimple(){ $('#simple-grouptopiccomment-media-box').toggle('fast'); } function insertGrouptopicattachmentSimple(nAttachmentid){ insertAttachment(editorSimple,nAttachmentid); } function insertGrouptopicvideoSimple(sContent){ insertVideo(editorSimple,sContent); } function insertGrouptopicmusicSimple(sContent){ insertMusic(editorSimple,sContent); } function readTopic(nId){ var sUrl=D.U('group://grouptopic/readtopic?id='+nId); var sHtml=''; windsforceAlert(sHtml,'阅读模式','',globalCancelattachment,'',700,500,1); } function topicLove(nId){ oLovetopics=windsforceAjax(D.U('group://grouptopic/love?id='+nId),'喜欢帖子','',completeLovetopic,'',400,100); } function completeLovetopic(){ Dyhb.AjaxSubmit("topieloveform",'','result',function(data,status){ if(status==1){ setTimeout("window.location.replace(_SELF_);",1000); return true; } }); return false; } var nGroupid=parseInt(''),nGrouptopicid=parseInt('');
删除主题 | 关闭 打开 | 置顶 | 精华 | 推荐 | 显示 隐藏 | 分类 | 标签 | 高亮 | 提升下沉 | 帖子移动 |   回帖回收站 0}-->style="color:red;font-weight:bold;">()