Skip to content

Commit

Permalink
Fix publiclab#5520: Fixed comment editing section (publiclab#5628)
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriacobian authored and jywarren committed Apr 26, 2019
1 parent cc4c6b5 commit 3cb05b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/views/comments/create.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
</script>
1 change: 0 additions & 1 deletion app/views/comments/create.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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!');

0 comments on commit 3cb05b1

Please sign in to comment.