app/views/commontator/comments/delete.js.erb~ in commontator-4.1.2 vs app/views/commontator/comments/delete.js.erb~ in commontator-4.2.0
- old
+ new
@@ -1,10 +1,10 @@
$("#comment_<%= @comment.id.to_s %>_body_div").html("<%= escape_javascript(
render :partial => 'body', :locals => {:comment => @comment}) %>");
$("#comment_<%= @comment.id.to_s %>_updated_timestamp_span").html("<%= escape_javascript(
- "#{@comment.updated_timestamp} by #{commontator_name(comment.editor)}") %>");
+ "#{@comment.updated_timestamp} by #{commontator_name(@comment.editor)}") %>");
$("#comment_<%= @comment.id.to_s %>_actions_span").html("<%= escape_javascript(
render :partial => 'actions',
:locals => {:comment => @comment,
:user => @user}) %>");
@@ -12,6 +12,6 @@
$("#comment_<%= @comment.id %>_votes_span").html("<%= escape_javascript(
render :partial => 'votes',
:locals => {:comment => @comment,
:user => @user}) %>");
-<%= javascript_proc %>
+$("#error_explanation").remove();