Ticket #2346 (closed defect: fixed)

Opened 22 months ago

Last modified 15 months ago

TreeDocIcon.css: Empty URLs cause page reloads

Reported by: daniel.lichtenberger@… Owned by: bill
Priority: normal Milestone: 0.9
Component: Dijit Version: 0.4.1
Severity: major Keywords:
Cc:

Description

src/widget/templates/TreeDocIcon.css contains several style classes with empty url() attributes for the background-image property, e.g.

.TreeStateChildrenNo?-ExpandClosed .TreeIconContent { background-image : url(); }

When the tree renders a node with this class, the empty URL is mapped to the URL of the page containing the tree. If that page is not cached, unnecessary page-reloads happen in the background.

Suggested fix: either include a valid image URL, or use background-image:none.

Workaround without touching Dojo: override the empty url() definitions in a custom CSS file, e.g.

.TreeStateChildrenNo?-ExpandClosed .TreeIconContent { background-image : none !important; }

Change History

Changed 22 months ago by dylan

  • milestone set to 0.9

Changed 18 months ago by bill

  • component changed from Widgets to Dijit

I need to add icon support into the Tree for dijit 0.9; when I do, I'll make sure not to have blank URLs. Leaving the bug open as a reminder.

Changed 17 months ago by bill

  • milestone changed from 0.9 to 1.0

Changed 15 months ago by bill

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from 1.0 to 0.9

No longer an issue in 0.9.

Note: See TracTickets for help on using tickets.