Sha256: de4551078da5f9de677af8064c22c27d82791bdf1d4ee1f1d7c0ae8524d4642d

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 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 %>_span").hide();
});

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

Version data entries

2 entries across 2 versions & 1 rubygems

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