Sha256: 883fb5ef53443122989aa6f11da99b8ed893191c69562bd8e919de7f7dbff1ec

Contents?: true

Size: 494 Bytes

Versions: 4

Compression:

Stored size: 494 Bytes

Contents

<% # Clients of this partial must supply the following variables:
   # thread
%>

$("#thread_<%= thread.id %>_hide_link").click(function() {
  $("#thread_<%= thread.id %>_span").hide();

  $("#thread_<%= thread.id %>_show_span").fadeIn()[0].scrollIntoView();
});

$("#thread_<%= thread.id %>_show_link").click(function() {
  $("#thread_<%= thread.id %>_span").fadeIn()[0].scrollIntoView();

  $("#thread_<%= thread.id %>_show_span").hide();
});

$("#thread_<%= thread.id %>_hide_span").show();

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
commontator-5.1.0 app/views/commontator/threads/_hide_show_links.js.erb
commontator-5.0.0 app/views/commontator/threads/_hide_show_links.js.erb
commontator-4.11.1 app/views/commontator/threads/_hide_show_links.js.erb
commontator-4.11.0 app/views/commontator/threads/_hide_show_links.js.erb