$(function(){ $('.attachmentcomment-content').emotionsToHtml(); $('#attachmentcomment_content').autoResize({ onResize:function(){ $(this).css({opacity:0.8}); }, animateCallback:function(){ $(this).css({opacity:1}); }, animateDuration:300, extraSpace:0, min:'100px' }); $(".face-icon").jqfaceedit({txtAreaObj:$("#attachmentcomment_content"),textareaid:'attachmentcomment_content',containerObj:$('#emotion_parentcontainer'),top:25,left:-27}); }); function commentCheckForm(comment_content,customContent){ var comment_name=$.trim($('#attachmentcomment_name').val()); var comment_email=$.trim($("#attachmentcomment_email").val()); var comment_url=$.trim($("#attachmentcomment_url").val()); if(customContent==1){ comment_content=$.trim($("#attachmentcomment_content").val()); } if(comment_name==""){ windsforceAlert(D.L('评论名字不能为空','__COMMON_LANG__@Common'),D.L('评论发生错误','__COMMON_LANG__@Common'),3); return false; } if(comment_name.length>25){ windsforceAlert(D.L('评论名字长度只能小于等于25个字符串','__COMMON_LANG__@Common'),D.L('评论发生错误','__COMMON_LANG__@Common'),3); return false; } if(comment_email!='' && !checkEmail(comment_email)){ windsforceAlert(D.L('评论E-mail 格式错误','__COMMON_LANG__@Common'),D.L('评论发生错误','__COMMON_LANG__@Common'),3); return false; } if(comment_url!='' && !checkUrl(comment_url)){ windsforceAlert(D.L('评论Url 格式错误','__COMMON_LANG__@Common'),D.L('评论发生错误','__COMMON_LANG__@Common'),3); return false; } if(comment_content == ""){ windsforceAlert(D.L('评论内容不能为空','__COMMON_LANG__@Common'),D.L('评论发生错误','__COMMON_LANG__@Common'),3); return false; } return true; } function commentSubmit(){ var bResult=commentCheckForm(); if(bResult===false){ return false; } $("#comment-submit").val(D.L('正在提交评论','__COMMON_LANG__@Common')); $("#comment-submit").attr("disabled", "disabled"); Dyhb.AjaxSubmit('attachment-commentform',D.U('home://attachment/add_attachmentcomment'),'',commentComplete); } function commentComplete(data,status){ $("#comment-submit").attr("disabled", false); $("#comment-submit").val(D.L('提交评论','__COMMON_LANG__@Common')); if(status==1){ setTimeout(function(){window.location.href=data.jumpurl;},1000); } } function attachmentcommentAudit(nCommentid,nStatus){ Dyhb.AjaxSend(D.U('home://attachment/audit_attachmentcomment?id='+nCommentid+'&status='+nStatus),'ajax=1','',function(data,status){ if(status==1){ setTimeout("window.location.replace(_SELF_);",1000); } }); } function showMedia(){ $('#attachmentcomment-media-box').toggle('fast'); } function insertAttachmentcommentattachment(nAttachmentid){ insertAttachmentNormal('attachmentcomment_content',nAttachmentid); } function insertAttachmentcommentvideo(sContent){ insertVideoNormal('attachmentcomment_content',sContent); } function insertAttachmentcommentmusic(sContent){ insertMusicNormal('attachmentcomment_content',sContent); }

暂无附件描述
上传时间
所属专辑 默认专辑
下载次数
评论次数
附件大小
附件类型
上传用户  
该用户暂时没有设置签名