'; return _html; }, set_like_unlike : function (comment_id,status,obj) { $.post( "/comment/process", { 'use_id':comment_id,act:'setLikeUnlike',status:status},function(data){ if (data.status == 'success') { var _current_like_unlike_count = obj.text(); _current_like_unlike_count++; if (status == 1) { obj.html('' + _current_like_unlike_count); } else { obj.html('' + _current_like_unlike_count); } return true; } },'JSON'); }, is_auto_show_comment: function () { $('.open-comment').trigger('click'); }, check_comment_limit: function(mode) { var _t = this; mode = (typeof mode == 'undefined') ? 'comment' : mode; if (mode == 'comment') { var _elm = $('#body_comment'); var _txt = _elm.val(); if (_txt.length > _t.text_comment_limit) { _elm.val(_txt.substring(0, _t.text_comment_limit)); } } else { var _elm = $('#body_reply'); var _txt = _elm.val(); if (_txt.length > _t.text_comment_limit) { _elm.val(_txt.substring(0, _t.text_comment_limit)); } } }, report_abuse: function(id,obj) { var _t = this; g_member.get_member_login(function(){ var _count_box_reply = obj.parent().parent().parent().parent().find($('.comment-report')).length; $('.box-reply').slideUp(function() { // Animation complete. $(this).remove(); // console.log('box-reply remove : ' + _count_box_reply); }); if (g_member.is_member_login) { // console.log('comment-report count : ' + _count_box_reply); if (_count_box_reply == 0) { // confirm $('