Remove expanded class from tree view

q0rban - April 20, 2009 - 13:51
Project:Vocabulary Index
Version:6.x-2.1
Component:Code
Category:feature request
Priority:minor
Assigned:Unassigned
Status:won't fix
Description

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;
}

AttachmentSize
vocabindex_tree_expanded.patch446 bytes

#1

Xano - April 20, 2009 - 14:46
Status:needs review» won't fix

I don't see what you're aiming at. Also new features are never added to existing branches.

#2

q0rban - April 20, 2009 - 14:51
Status:won't fix» postponed (maintainer needs more info)

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

Xano - April 20, 2009 - 17:23
Status:postponed (maintainer needs more info)» won't fix

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.

 
 

Drupal is a registered trademark of Dries Buytaert.