Files
DzzOffice/dzz/comment/scripts/comment.js

1 line
19 KiB
JavaScript
Raw Normal View History

function feed_publish(e,t,a){var i,d="";for(var s in d+='<div id="comment_'+e.cid+'" class="card" feed-id="'+e.cid+'" style="display:none"><div class="card-body">',d+='\t<div class="left_ifed"> <a href="user.php?uid='+e.authorid+'" title="'+e.author+'" hidefocus="true">'+e.avatar+"</a> </div>",d+='\t<div class="right_ifed">',d+=' \t<div class="main_fed">',d+=' \t\t <p class="text-muted"> <a href="user.php?uid='+e.authorid+'" title="'+e.author+'" hidefocus="true" class="appuser_sfed">'+e.author+"</a> "+__lang.reply+"</p>",d+=' \t\t<div class="card master_mfed"><span class="card-body">'+e.message+"</span></div>",d+='\t <div class="attachment_fed">',e.attachs){var c=e.attachs[s];d+='\t\t <div class="item_afed">',"image"==c.type?(d+='\t\t <div class="pic_fed clearfix">',d+='\t\t <div class="img_pfed"> <a class="min_ipfed" hidefocus="true" href="javascript:;"><img src="'+c.img+'" data-original="'+c.img+'&original=1" alt="'+c.title+'" class=""></a> </div>',d+="\t\t </div>",d+='\t\t<div class="file_fed imgfile_fed clearfix"> '+c.title+'<span class="kb_nffed">('+c.filesize+")</span>",d+='\t\t\t<p class="down_ffed">',c.downloads>0?d+='\t \t\t\t<a href="javascript:;" title="" hidefocus="true" class="btn_dffed" onclick="feed_downAttach(\''+c.qid+"')\">"+__lang.download+"("+c.downloads+__lang.degree+")</a>":d+='\t \t\t\t<a href="javascript:;" title="" hidefocus="true" class="btn_dffed" onclick="feed_downAttach(\''+c.qid+"')\">"+__lang.download+"</a>",d+='\t\t <a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed" onclick="feed_attach_saveto(\''+c.qid+"')\">"+__lang.js_saved_my_documents+"</a> ",d+="\t </p>",d+="\t </div>"):"video"==c.type?(d+='\t<div class="file_fed file_fed_'+c.type+' clearfix">',d+=' <div class="ico_ffed " style="margin-right:20px"><a href="javascript:;" onclick="feed_attach_preview(\''+c.qid+'\')"><img src="'+c.img+'" alt="'+c.title+'" class="videoclass50_50" ></a></div>',d+=' <p class="name_ffed">'+c.title+"</p>",d+=' <p class="down_ffed">',c.downloads>0?d+='\t \t\t\t<a href="javascript:;" title="" hidefocus="true" class="btn_dffed" onclick="feed_downAttach(\''+c.qid+"')\">"+__lang.download+"("+c.downloads+__lang.degree+")</a>":d+='\t \t\t\t<a href="javascript:;" title="" hidefocus="true" class="btn_dffed" onclick="feed_downAttach(\''+c.qid+"')\">"+__lang.download+"</a>",d+='\t\t <a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed" onclick="feed_attach_saveto(\''+c.qid+"')\">"+__lang.js_saved_my_documents+"</a> ",d+="\t </p>",d+="\t </div>"):"dzzdoc"==c.type||"link"==c.type?(d+='\t<div class="file_fed file_fed_'+c.type+' clearfix">',d+=' <div class="ico_ffed "><a href="javascript:;" onclick="feed_attach_preview(\''+c.qid+'\')"><img src="'+c.img+'" alt="'+c.title+'" style="height:50px;"></a></div>',d+=' <p class="name_ffed">'+c.title+"</p>",d+=' <p class="down_ffed">',d+='\t \t\t\t<a href="javascript:;" title="" hidefocus="true" class="btn_dffed" onclick="feed_attach_preview(\''+c.qid+"')\">"+__lang.preview+"</a>",d+="\t</div>"):(d+='\t<div class="file_fed file_fed_'+c.type+' clearfix">',d+=' <div class="ico_ffed "><a href="javascript:;" onclick="feed_attach_preview(\''+c.qid+'\')"><img src="'+c.img+'" alt="'+c.title+'" style="height:50px;"></a></div>',d+=' <p class="name_ffed">'+c.title+"</p>",d+=' <p class="down_ffed">',c.preview>0&&(d+='\t \t\t\t<a href="javascript:;" title="" hidefocus="true" class="btn_dffed" onclick="feed_attach_preview(\''+c.qid+"')\">"+__lang.preview+"</a>"),c.downloads>0?d+='\t \t\t\t<a href="javascript:;" title="" hidefocus="true" class="btn_dffed" onclick="feed_downAttach(\''+c.qid+"')\">"+__lang.download+"("+c.downloads+__lang.degree+")</a>":d+='\t \t\t\t<a href="javascript:;" title="" hidefocus="true" class="btn_dffed" onclick="feed_downAttach(\''+c.qid+"')\">"+__lang.download+"</a>",d+='\t\t <a href="javascript:void(0);" title="" hidefocus="true" class="save_dffed" onclick="feed_attach_saveto(\''+c