Modify

Opened 7 years ago

Last modified 6 months ago

#8441 new enhancement

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

Reported by: lucid Owned by:
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 7 years ago.
GreaseMonkey UserScript to fold replies

Download all attachments as: .zip

Change History (6)

comment:1 Changed 7 years ago by Radek Bartoň

Status: newassigned

OK. I'm also for JavaScript implementation.

Changed 7 years ago by lucid

Attachment: FoldReplies.js added

GreaseMonkey UserScript to fold replies

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

comment:4 Changed 6 months ago by Ryan J Ollos

Owner: Radek Bartoň deleted
Status: assignednew

comment:5 Changed 6 months ago by lucid

FWIW we don't use this plugin anymore, so feel free to close as WONTFIX.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.

Add Comment


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

 
Note: See TracTickets for help on using tickets.