Modify

Opened 4 years ago

Last modified 4 years ago

#8441 assigned enhancement

RFE: Fold/collapse/hide parts of the discussion tree

Reported by: lucid Owned by: Blackhex
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

In the tree view discussion topic it would be very useful to allow "folding and unfolding" of a sub tree. Each reply would have a "[-]" or "Fold" link button. When clicked the reply and all relevant replies collapse ("folded", become hidden). Only a "[+]" or "Unfold" link button remains, and maybe a single line (fragment) of the reply remains.

This would be very useful in larger discussions.

Personally, I would prefer hiding on the client using javascript / CSS, so no server roundtrip is needed to fold or unfold a sub tree.

Attachments (1)

FoldReplies.js (1.2 KB) - added by lucid 4 years ago.
GreaseMonkey UserScript to fold replies

Download all attachments as: .zip

Change History (4)

comment:1 Changed 4 years ago by Blackhex

  • Status changed from new to assigned

OK. I'm also for JavaScript implementation.

Changed 4 years ago by lucid

GreaseMonkey UserScript to fold replies

comment:2 Changed 4 years ago by lucid

If it's any help, I attached a simple userscript (e.g. for GreaseMonkey browser plugin) hack to do something like this. (Based on http://userscripts.org/scripts/review/60027)

comment:3 Changed 4 years ago by Blackhex

Thank you. I'll take a look at your user script and how is ticket properties expansion done in Trac 0.12 and I'll implement this feature according to them.

Add Comment

Modify Ticket

Action
as assigned .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.