in reply to Re^4: Node parents shown while viewing a node
in thread Node parents shown while viewing a node
OK, just for you: Put the following code in your Free Nodelet:
<!-- the HTML: --> Hide old replies: <input name="hide_old_replies" id="hide_old_replies" + type="checkbox" onClick="toggle_old_replies()" /> <!-- the JS: --> <script language="javascript"><!-- function toggle_old_replies(){ var chk = document.getElementById('hide_old_replies'); var state = chk.checked ? 'none' : 'table-cell'; var allelems = document.all ? document.all : document.getElement +sByTagName("*"); var inc = 0; for ( i = 0; i < allelems.length; i++ ) { if ( allelems[i].className == "reply-body" ) { allelems[i].style.display = state; } } } //--></script>
This only toggles the visibility of the bodies of "old" replies; the header boxes etc. for old replies remain visible. Hopefully that's sufficient for your desires.
Thanks to tye for applying the patch I wrote to make this possible.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Free Nodelet Hack: Toggle bodies of Old Replies
by oha (Friar) on Sep 28, 2007 at 16:50 UTC | |
by ikegami (Patriarch) on Sep 28, 2007 at 17:05 UTC | |
by tye (Sage) on Sep 28, 2007 at 17:15 UTC |