From 3cb05b171e3627c2ded5d6a6c3a3f6a9761258cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valeria=20Garc=C3=ADa?= Date: Fri, 26 Apr 2019 10:56:24 -0700 Subject: [PATCH] Fix #5520: Fixed comment editing section (#5628) --- app/views/comments/create.html.erb | 1 - app/views/comments/create.js.erb | 1 - 2 files changed, 2 deletions(-) diff --git a/app/views/comments/create.html.erb b/app/views/comments/create.html.erb index 737131e3c8d..daba0165866 100644 --- a/app/views/comments/create.html.erb +++ b/app/views/comments/create.html.erb @@ -4,6 +4,5 @@ $('#answer-<%= @answer_id %>-comment-<%= @comment.id %>').show() $('#answer-<%= @answer_id %>-comment-count')[0].innerHTML = parseInt($('#answer-<%= @answer_id %>-comment-count')[0].innerHTML) + 1 $('#answer-<%= @answer_id %>-comment-form textarea').val(''); $('#answer-<%= @answer_id %>-comment-section .help-block').remove(); -$('textarea').val(""); notyNotification('mint', 3000, 'success', 'topRight', 'Comment Added!'); diff --git a/app/views/comments/create.js.erb b/app/views/comments/create.js.erb index caf08789df8..c1edf31d470 100644 --- a/app/views/comments/create.js.erb +++ b/app/views/comments/create.js.erb @@ -4,5 +4,4 @@ $('#comment-<%= @comment.reply_to %>-reply').before('<%= escape_javascript(render :partial => "notes/comment", :locals => {comment: @comment, answer_id: @answer_id}) %>') <% end %> $('#answer-<%= @answer_id %>-comment-section .help-block').remove(); -$('textarea').val(""); notyNotification('mint', 3000, 'success', 'topRight', 'Comment Added!');