Opened 10 years ago

Closed 3 years ago

Last modified 3 years ago

#12001 closed defect (fixed)

Not initially collapsed when used in ticket comments.

Reported by: roger.oberholtzer@… Owned by: mgs1994@…
Priority: normal Component: CollapsiblePlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0


When used in a ticket comment, the collapsible area is always expanded at the start. You have to click on it to collapse the area.

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by mgs1994@…

I'm writing it in case it helps.

edit plugin file like this. tested on trac 1.4


  • (a) original vs. (b) fixed

    a b  
    3131   def expand_macro(self, formatter, name, content):
    3333       # process arguments
    3434       args, kw = parse_args(content)
    3535       title = ''
    3737       for i in range(0, len(args)):
    3838           title += args[i]
    39         return("<div> " +
     39        return("<div class=\"collapsed\"> " +
    4040              "<h3 class=\"foldable\">" + title + "</h3>" +
    4141              "<div>")

comment:2 Changed 3 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 17974:

Make it initially collapsed

Fixes #12001.

comment:3 Changed 3 years ago by Ryan J Ollos

Owner: changed from codingking to mgs1994@…

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain mgs1994@….
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.