app/views/commontator/comments/edit.js.erb in commontator-5.1.0 vs app/views/commontator/comments/edit.js.erb in commontator-6.0.0.pre.1

- old
+ new

@@ -1,5 +1,7 @@ -$("#comment_<%= @comment.id.to_s %>_body_div").html("<%= escape_javascript( - render partial: 'form', - locals: { comment: @comment }) %>"); - +$("#commontator-comment-<%= @comment.id %>-body").html("<%= escape_javascript( + render partial: 'form', locals: { comment: @comment } +) %>"); + +$('#commontator-comment-<%= @comment.id %>-edit-body').focus(); + <%= javascript_proc %>