Just a little jQuery to share. cf a blog post on the subject.

$(function(){
  // If there are new comments, show them on top
  if ( $('.comment-new').length ) {
    $('div#comments').prepend('<div id="newcomments"><h2 class="comments">New Comments</h2></div>');
    $('.comment-new').clone().appendTo('div#newcomments');
  }

  // Hide the content of all comments that aren't new (but preserve the header/title
  $('div#comments .comment:not(".comment-new") .content').hide();

  // Make all the comment headers clickable to show/toggle
  $('div#comments').find('.comment .content').siblings('h3').click(function() {
    $(this).siblings('.content').slideToggle();
  });
});

Comments

dman’s picture

I see what you're doing there, that could be quite handy. especially for out-of-control threads like this one became
Pretty good UI, I'd say

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/