At the moment, Nice Menus is applied to ul.nice-menu elements once the document is ready (see nice_menus.js).

Ideally this activation code should sit within a Drupal.behaviors function so it can be easily called again (ie if the Nice Menu is dynamically replaced via AJAX).

It should be called via Drupal.attachBehaviors('ul.nice-menu'); or something similar.

I hope this makes sense...

Comments

vordude’s picture

Category: feature » bug
deviantintegral’s picture

Version: 6.x-2.1 » 7.x-2.x-dev
deviantintegral’s picture

Status: Active » Needs review
StatusFileSize
new2.42 KB

Here's a patch that converts the JS to a behavior and cleans up the documentation.

ericduran’s picture

Status: Needs review » Reviewed & tested by the community
vordude’s picture

vordude’s picture

Status: Reviewed & tested by the community » Fixed
vordude’s picture

Status: Fixed » Closed (fixed)