Sha256: ba5421b54de11644a9664edac183ec0ec3cb77ba1195ec2631d36b673a4897c4

Contents?: true

Size: 805 Bytes

Versions: 9

Compression:

Stored size: 805 Bytes

Contents

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

<% 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 %>

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

<%= javascript_proc %>

Version data entries

9 entries across 9 versions & 1 rubygems

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