Sha256: cc5d6bffb5cd3e165851e57d04b6d25896cf26705665c9e9866f713a3576521d

Contents?: true

Size: 484 Bytes

Versions: 9

Compression:

Stored size: 484 Bytes

Contents

<% if @comment.nil? || @comment.new_record? %>
  <%
    id = @comment.nil? || @comment.parent.nil? ?
      "commontator-thread-#{@commontator_thread.id}-new-comment" :
      "commontator-comment-#{@comment.parent.id}-reply"
  %>

  $("#<%= id %>").hide();

  $("#<%= id %>-link").fadeIn();
<% else %>
  $("#commontator-comment-<%= @comment.id %>-body").html("<%= escape_javascript(
    render partial: 'body', locals: { comment: @comment }
  ) %>");
<% end %>

<%= javascript_proc %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
commontator-7.0.1 app/views/commontator/comments/cancel.js.erb
commontator-7.0.0 app/views/commontator/comments/cancel.js.erb
commontator-6.3.2 app/views/commontator/comments/cancel.js.erb
commontator-6.3.1 app/views/commontator/comments/cancel.js.erb
commontator-6.3.0 app/views/commontator/comments/cancel.js.erb
commontator-6.2.1 app/views/commontator/comments/cancel.js.erb
commontator-6.2.0 app/views/commontator/comments/cancel.js.erb
commontator-6.1.1 app/views/commontator/comments/cancel.js.erb
commontator-6.1.0 app/views/commontator/comments/cancel.js.erb