по умолчании при нажаатии на иконку форма комментариев скрывается , нужно сделать наоборот при нажатии открывается
function Wo_RegisterComment(text, post_id, user_id, event, page_id, type) {
if(event.keyCode == 13 && event.shiftKey == 0) {
var comment_src_image = $('#post-' + post_id).find('#comment_src_image');
var comment_image = '';
if (comment_src_image.length > 0) {
comment_image = comment_src_image.val();
}
post_wrapper = $('[id=post-' + post_id + ']');
comment_textarea = post_wrapper.find('.post-comments');
comment_btn = comment_textarea.find('.emo-comment');
textarea_wrapper = comment_textarea.find('.textarea');
comment_list = post_wrapper.find('.comments-list');
if(text == '' && comment_image == '') {
return false;
}
event.preventDefault();
textarea_wrapper.val('');
Wo_progressIconLoader(comment_btn);
$.post(Wo_Ajax_Requests_File() + '?f=posts&s=register_comment', {
post_id: post_id,
text: text,
user_id: user_id,
page_id: page_id,
comment_image: comment_image
}, function (data) {
if(data.status == 200) {
post_wrapper.find('.comment-container:first-child').before(data.html);
post_wrapper.find('[id=comments]').html(data.comments_num);
}
$('#post-'+ post_id).find('.comment-image-con').empty().addClass('hidden');
Wo_progressIconLoader(comment_btn);
if (data.can_send == 1) {
Wo_SendMessages();
}
});
}