Opened 6 years ago

Last modified 6 years ago

#8441 assigned enhancement

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

Reported by: lucid Owned by: Radek Bartoň
Priority: normal Component: DiscussionPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


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 6 years ago.
GreaseMonkey UserScript to fold replies

Download all attachments as: .zip

Change History (4)

comment:1 Changed 6 years ago by Radek Bartoň

Status: newassigned

OK. I'm also for JavaScript implementation.

Changed 6 years ago by lucid

Attachment: FoldReplies.js added

GreaseMonkey UserScript to fold replies

comment:2 Changed 6 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

comment:3 Changed 6 years ago by Radek Bartoň

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.

Modify Ticket

Change Properties
Set your email in Preferences
as assigned The owner will remain Radek Bartoň.

Add Comment

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

Note: See TracTickets for help on using tickets.