I needed the ability to adjust the styling based on whether the dropdown is visible or hidden.

Attached is a patch that adds a class "jquery_dropdown_expanded" to the jquery_dropdown_container element to allow for toggling styles when the dropdown is visible.

You'll notice in the patch that I utilized variables to prevent duplicate "j" queries. ($container and $dropdown)

The patch was made again 6.x-1.2. I can re-roll it against the dev version if necessary.

Comments

lee20’s picture

Status: Needs review » Needs work

The patch only accounts for the click events and fails to apply or remove the expanded class when the dropdown is hidden on mouseout.

lee20’s picture

Status: Needs work » Needs review
StatusFileSize
new1.7 KB

Attached is a patch that includes the patch from my initial post and also accounts for the issue in #1.