Files
fetsite/app/views/comments/index.js.erb
Andreas Stephanides d20c968fa4 Revert "removecomments"
This reverts commit 6ee1468ce3.
2014-10-27 13:00:50 +01:00

3 lines
325 B
Plaintext

$("#<%= Comment.wrapid_for(@commentable) %>").html("<%= escape_javascript render partial:"comments/comments", object: @comments %>")
$("#<%= Comment.switchshowid_for(@commentable) %>").attr("href","<%= escape_javascript hide_comments_path(commentable_type: @commentable.class.to_s, commentable_id: @commentable.id) %>")