function moji(){$('.moji').emojiPicker({ button: false }); $('.mojibtn').on('click', function(){ $(this).parent().siblings('.moji').first().emojiPicker('toggle'); }); } $(document).ready(function () { moji(); Sys.WebForms.PageRequestManager.getInstance().add_endRequest(moji); }); $(document).on('click','.reply',function(e) { e.preventDefault(); $(this).parents('.row').next('.reply-row').first().fadeIn().find('input[name$=Reply],textarea[name$=Reply]').focus(); //.show().focus(); }); //$('textarea[id$="Comment"]').on('paste input', function(){ var tb = $(this); if(tb.outerHeight() > this.scrollHeight) { tb.height(1); } while(tb.outerHeight() < (this.scrollHeight + parseFloat(tb.css('borderTopWidth')) + parseFloat(tb.css('borderBottomWidth')))){ tb.height(tb.height() + 1).next('.input-group-btn').children('a.btn, label.btn').each(function() { $(this).height(tb.height()); }); }});