app/views/commontator/comments/create.js.erb in commontator-4.5.4 vs app/views/commontator/comments/create.js.erb in commontator-4.6.0
- old
+ new
@@ -1,12 +1,14 @@
-$("#thread_<%= @thread.id %>_comment_list_div").html("<%= escape_javascript(
- render :partial => 'list',
- :locals => {:comments => @thread.ordered_comments,
- :user => @user}) %>");
+<%= render :partial => 'commontator/threads/show',
+ :locals => {:thread => @thread,
+ :user => @user,
+ :page => @thread.new_comment_page(@per_page),
+ :per_page => @per_page} %>
$("#thread_<%= @thread.id %>_new_comment_div").hide();
$("#thread_<%= @thread.id %>_new_comment_link_span").fadeIn();
$("#comment_<%= @comment.id.to_s %>_div").hide().fadeIn()[0].scrollIntoView();
<%= javascript_proc %>
+