var nHomefreshviewcomment=1; $(function(){ $('.homefresh-content').emotionsToHtml(); $('.homefreshcomment_content').emotionsToHtml(); $('.homefreshcomment-content').emotionsToHtml(); $('#homefreshcomment_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:$("#homefreshcomment_content"),textareaid:'homefreshcomment_content',containerObj:$('#emotion_parentcontainer'),top:25,left:-27}); }); function showMedia(){ $('#homefreshcomment-media-box').toggle('fast'); showEmotion(); } function insertHomefreshcommentattachment(nAttachmentid){ insertAttachmentNormal('homefreshcomment_content',nAttachmentid); } function insertHomefreshcommentvideo(sContent){ insertVideoNormal('homefreshcomment_content',sContent); } function insertHomefreshcommentmusic(sContent){ insertMusicNormal('homefreshcomment_content',sContent); } function showEmotion(){ $(".face-icon").jqfaceedit({txtAreaObj:$("#homefreshcomment_content"),textareaid:'homefreshcomment_content',containerObj:$('#emotion_parentcontainer'),top:25,left:-27}); }