Opened 12 years ago

Closed 12 years ago

#2346 closed defect (fixed)

TreeDocIcon.css: Empty URLs cause page reloads

Reported by: daniel.lichtenberger@… Owned by: bill
Priority: high Milestone: 0.9
Component: Dijit Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

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 (4)

comment:1 Changed 12 years ago by dylan

Milestone: 0.9

comment:2 Changed 12 years ago by bill

Component: WidgetsDijit

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.

comment:3 Changed 12 years ago by bill

Milestone: 0.91.0

comment:4 Changed 12 years ago by bill

Milestone: 1.00.9
Resolution: fixed
Status: newclosed

No longer an issue in 0.9.

Note: See TracTickets for help on using tickets.