Posted by q0rban on April 20, 2009 at 1:51pm
Jump to:
| Project: | Vocabulary Index |
| Version: | 6.x-2.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
If you view a tree vocabindex with js disabled, you will see all sub terms under the parent terms. Is it possible to take the expanded class off of the parent items in the initial markup, that way it's possible to hide the sub-items with css, ala:
ul.vocabindex li {
height 20px;
overflow: hidden;
}
ul.vocabindex li.expanded {
overflow: visible;
}| Attachment | Size |
|---|---|
| vocabindex_tree_expanded.patch | 446 bytes |
Comments
#1
I don't see what you're aiming at. Also new features are never added to existing branches.
#2
Ok, so as it stands, all parent list items are given a class of expanded. This means if someone has a slow connection, or JS disabled, all child terms are displayed under the parent terms. What I'm asking is for the expanded class to be taken off of those parent terms, so that just the JS is adding/removing the expanded class as needed.
I understand no features will be added to this tag, but the patch is against that version, so that's why I assigned it there.
#3
This is still a won't fix.
I have no idea what you mean. Items being displayed as children has nothing to to with either JS or CSS, but with the fact that they're rendered as nested lists. Also, nothing is hidden if JS is disabled or not present for any reason.