Sha256: 23a9a11441ff90e4a3ca62e0eec8a80c85049c805cba099456a44e81a267db5a

Contents?: true

Size: 571 Bytes

Versions: 4

Compression:

Stored size: 571 Bytes

Contents

<%#
  Views that use this partial must supply the following variables:
  thread
%>

$("#commontator-thread-<%= thread.id %>-hide-link").click(function() {
  $("#commontator-thread-<%= thread.id %>-content").hide();

  $("#commontator-thread-<%= thread.id %>-show").fadeIn()[0].scrollIntoView();
});

$("#commontator-thread-<%= thread.id %>-show-link").click(function() {
  $("#commontator-thread-<%= thread.id %>-content").fadeIn()[0].scrollIntoView();

  $("#commontator-thread-<%= thread.id %>-show").hide();
});

$("#commontator-thread-<%= thread.id %>-hide").show();

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
commontator-6.0.1 app/views/commontator/threads/_hide_show_links.js.erb
commontator-6.0.0 app/views/commontator/threads/_hide_show_links.js.erb
commontator-6.0.0.pre.2 app/views/commontator/threads/_hide_show_links.js.erb
commontator-6.0.0.pre.1 app/views/commontator/threads/_hide_show_links.js.erb