Modify

Opened 8 months ago

Last modified 5 months ago

#11489 accepted defect

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

Reported by: jorgeo Owned by: ChrisNelson
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 5 months ago by ChrisNelson

  • Status changed from new to accepted

comment:2 Changed 5 months ago by ChrisNelson

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

comment:3 Changed 5 months ago by ChrisNelson

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 5 months ago by ChrisNelson

In 13853:

Remove comment that has been addressed. Refs #11489.

Add Comment

Modify Ticket

Action
as accepted .
Author


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

 
Note: See TracTickets for help on using tickets.