Ticket #2346 (closed defect: fixed)
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; }