This module seems to have a Javascript bug in Internet Explorer 8 and Safari that makes it not work.

Webpage error details in IE8:

Message: Expected identifier
Line: 3
Char: 41
Code: 0
URI: http://***.*********.com/sites/all/modules/admin_menu_dropdown/admin_menu_dropdown.js?C

It works in Firefox 3 but not in Safari on Mac. In Firefox no errors are thrown in the debugger.

Running:

Drupal: 6.20
Administration Menu: 6.x-1.6
Admin Menu Hider: Tried both 6.x-3.3 and 6.x-3.x-dev

Comments

Josh The Geek’s picture

Title: Javascript Bug » Use of a reserved word
Assigned: Unassigned » Josh The Geek
Status: Active » Needs review
StatusFileSize
new1021 bytes

Found it: I use 'default' as a variable name, and it's a reserved word. Patch.

ejohnson’s picture

I appreciated the quick response and patch.

Those changes have fixed it in Internet Explorer 8, 7 and 6. Still works in Firefox 4. Tested and works in Google Chrome 10.

It still does not work in Safari 5. I'm not really sure how to debug in Safari though, as I seldom use it.

Josh The Geek’s picture

Status: Needs review » Fixed

Commited and pushed. I moved the Safari incompatibility to #1128944: Incompatible with Safari.

theposse’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev

Hi, the same thing appears to be happening in the latest release of the 7.x branch on our website. Would you be able to verify that and if there is a patch that needs released, please do so? Thanks so much.

theposse’s picture

Status: Fixed » Active
Josh The Geek’s picture

Status: Active » Needs review
StatusFileSize
new1006 bytes

The (original) patch didn't apply for some reason even though the affected lines hadn't changed. Rerolled. Needs testing.

emcniece’s picture

Confirming #6 on D7.22, admin_menu_dropdown 7.x-3.0-alpha1 2011-01-02

Thank you!

izmeez’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Patch in #6 applies to 7.x-3.x and works as expected.

izmeez’s picture

Priority: Critical » Normal
Status: Reviewed & tested by the community » Needs review

[edit] My apologies for the noise, this comment was nonsense
I think this should be closed as a duplicate of #1221668: Breaks a lot of functionality when Aggregate JavaScript is on which is a more complete solution.

izmeez’s picture

Priority: Normal » Critical
Status: Needs review » Reviewed & tested by the community

I am restoring the status from the changes made with comment #9.

izmeez’s picture

Priority: Critical » Normal
Status: Reviewed & tested by the community » Closed (duplicate)

I am closing this issue.

The patch in #6 overlaps other issues and has been superseded by patches in separate issues.

#1221668: Breaks a lot of functionality when Aggregate JavaScript is on that provides patch to module file.

#1128944: Incompatible with Safari that provides patch to javascript.

izmeez’s picture

Status: Closed (duplicate) » Reviewed & tested by the community

After spending too much time on this I realized that this issue and #1128944: Incompatible with Safari are for 6.x-3.x-dev and issue #1221668: Breaks a lot of functionality when Aggregate JavaScript is on is for 7.x-3.x where it incorporates the changes in this issue and more.