Modify

Opened 10 years ago

Last modified 10 years ago

#11489 accepted defect

Collapse/Uncollapse works only for first Gantt displayed in same page

Reported by: Jorge Ortiz Owned by: Chris Nelson
Priority: low Component: TracJsGanttPlugin
Severity: minor Keywords: collapse
Cc: Trac Release: 1.0

Description

When having multiple graphs in the same page, the +/- collapse tool might collapse/uncollapse the group in the other graph. The JS onclick event listener seems to look for "span#group_[ticket_id]", which would match the same ticket displayed in another graph (with same, or more likely, different configuration). It seems to only affect the first match found.

I think this would be solved if the graph id "g_[graph_id]" could be prepended or appended to the group id string in the so that it only affects the correct graph.

Attachments (0)

Change History (4)

comment:1 Changed 10 years ago by Chris Nelson

Status: newaccepted

comment:2 Changed 10 years ago by Chris Nelson

I have a partial fix. Working on fleshing it out.

comment:3 Changed 10 years ago by Chris Nelson

In 13852:

Handle collapsing groups on multi-Gantt pages. Refs #11489.

Needed to add the chart ID to more DOM element IDs for uniqueness.

comment:4 Changed 10 years ago by Chris Nelson

In 13853:

Remove comment that has been addressed. Refs #11489.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as accepted The owner will remain Chris Nelson.

Add Comment


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

 
Note: See TracTickets for help on using tickets.