Sha256: 331e3b8e21cf73e27b6f9b9e01ad06abae9c90c5cff4f38ed4bd3687a3a20e2a

Contents?: true

Size: 873 Bytes

Versions: 1

Compression:

Stored size: 873 Bytes

Contents

<%=
  render partial: 'commontator/threads/show', locals: {
    thread: @commontator_thread,
    user: @commontator_user,
    per_page: @commontator_per_page,
    page: @commontator_thread.new_comment_page(@commontator_per_page),
    show_all: @commontator_show_all
  }
%>

<% unless @commontator_new_comment.nil? %>
  $("#commontator-thread-<%= @commontator_thread.id %>-new-comment").html("<%= escape_javascript(
    render partial: 'form', locals: {
      comment: @commontator_new_comment,
      thread: @commontator_thread,
      per_page: @commontator_per_page
    }
  ) %>");
<% else %>
  $("#commontator-thread-<%= @commontator_thread.id %>-new-comment").hide();

  $("#commontator-thread-<%= @commontator_thread.id %>-new-comment-link").fadeIn();
<% end %>

$("#commontator-comment-<%= @comment.id %>").hide().fadeIn()[0].scrollIntoView();

<%= javascript_proc %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
commontator-6.0.0.pre.1 app/views/commontator/comments/create.js.erb