Sha256: 8f81e65cb7714d24240b1a317eb21648818aebac2d67250b0976b7123337b7f7

Contents?: true

Size: 692 Bytes

Versions: 9

Compression:

Stored size: 692 Bytes

Contents

<% unless @comment.try(:id).blank? %>
  <% @comment.reload %>
  $("#comment_<%= @comment.id.to_s %>_body_div").html("<%= escape_javascript(
    render :partial => 'body', :locals => { :comment => @comment }) %>");
<% end %>

<% unless @new_comment.nil? %>
  $("#thread_<%= @thread.id %>_new_comment_form_div").html("<%= escape_javascript(
    render :partial => 'form',
           :locals => { :comment => @new_comment,
                        :thread => @thread,
                        :per_page => @per_page }) %>");
<% else %>
  $("#thread_<%= @thread.id %>_new_comment_form_div").hide();

  $("#thread_<%= @thread.id %>_new_comment_link_div").fadeIn();
<% end %>

<%= javascript_proc %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
commontator-4.11.1 app/views/commontator/comments/cancel.js.erb
commontator-4.11.0 app/views/commontator/comments/cancel.js.erb
commontator-4.10.5 app/views/commontator/comments/cancel.js.erb
commontator-4.10.4 app/views/commontator/comments/cancel.js.erb
commontator-4.10.3 app/views/commontator/comments/cancel.js.erb
commontator-4.10.2 app/views/commontator/comments/cancel.js.erb
commontator-4.10.1 app/views/commontator/comments/cancel.js.erb
commontator-4.10.0 app/views/commontator/comments/cancel.js.erb
commontator-4.9.0 app/views/commontator/comments/cancel.js.erb