fixes issue with flags on comments with children

Closes #318
This commit is contained in:
Juanjo Bazán
2015-09-04 19:35:48 +02:00
parent c4b4578f51
commit ea85059dbb
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
<span class="js-flag-actions">
<span id="flag-actions-<%= dom_id(comment) %>" class="js-flag-actions">
<%= render 'comments/flag_actions', comment: comment %>
</span>

View File

@@ -1 +1 @@
$("#<%= dom_id(@comment) %> .js-flag-actions").html('<%= j render("comments/flag_actions", comment: @comment) %>');
$("#flag-actions-<%= dom_id(@comment) %>").html('<%= j render("comments/flag_actions", comment: @comment) %>');