Enabling Nice Primary Menus disables fieldset expansion
McJax - April 24, 2008 - 15:00
| Project: | Nice Primary Menus |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
When I enable Nice Primary Menus on my site, I found that when I then go to edit content I don't get the option to expand the fieldset e.g. Comment settings, Menu settings etc.
The site use the Igniter theme (minimal CSS).
Tried on various browsers, but no difference.
Thanks for looking !
Jackie

#1
Just to let you know
I experienced the same issue last night. My only option, unfortunately was to disable the module.
#2
I reproduced the problem with a new, pretty bare-bones toy site running locally on a Mac with MAMP. Simply turning on Nice Primary Menus causes fieldset headers to act like plain text, without an expansion triangle to the left and with no response to mouse clicks. This holds true under both Firefox and Safari and the plain-vanilla Garland theme. (For the record I didn't edit the theme or any menus.)
Turning off Javascript in the browser and reloading the page effectively expands all the fieldsets, so this may be a temporary work-around for some purposes. A search of the Drupal site turns up numerous problems with fieldset expansion so this may be a symptom of a broader problem.
#3
I accidentally fixed this problem trying to solve a separate "page loaded with errors" warning in IE ("object expected / code 0").
I noticed in FF's error console that the error was "'active_mid' not defined". I add the following line near the top of "nice_primary_menus.js" and it fixed both problems:
function active_mid() {}