Sha256: 24a542a3b9a99b41f8ff81fb3571f2c2f6b0f94c1f0a64ace88d3cb120cd0ccb
Contents?: true
Size: 801 Bytes
Versions: 9
Compression:
Stored size: 801 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(); var commontatorLink = $("#commontator-thread-<%= thread.id %>-show").fadeIn(); $('html, body').animate( { scrollTop: commontatorLink.offset().top - window.innerHeight/2 }, 'fast' ); }); $("#commontator-thread-<%= thread.id %>-show-link").click(function() { var commontatorThread = $("#commontator-thread-<%= thread.id %>-content").fadeIn(); $('html, body').animate( { scrollTop: commontatorThread.offset().top - window.innerHeight/2 }, 'fast' ); $("#commontator-thread-<%= thread.id %>-show").hide(); }); $("#commontator-thread-<%= thread.id %>-hide").show();
Version data entries
9 entries across 9 versions & 1 rubygems