If site is opend in Internet Explorer (any version) and something with ajax happens (e.g. ajax_comments or popups), simple menu just clones itself...
(see attachment)

Apache 2.2.11
PHP 5.2.9
MySQL 5.1.32
Drupal 6.10

Seriously need help on this.

CommentFileSizeAuthor
#5 simplemenu-enabled.patch453 byteskndr
#4 simplemenu.js_.txt2.64 KBXerraX
IE-Problem.jpg140.65 KBXerraX

Comments

XerraX’s picture

Version: 6.x-2.x-dev » 6.x-1.x-dev
XerraX’s picture

i fixed this by reverting

Drupal.behaviors.simplemenuAttach = function(context)

back to

$(document).ready(function()

HallSL’s picture

I'm seeing a similar behavior in Firefox, when editing views or blocks. Is the solution above a good one? If so, where do I put that? Thanks!

XerraX’s picture

StatusFileSize
new2.64 KB

since i dont know how to create a patch, i will give you my file.
take the file, rename it to simplemenu.js and put it into your "simplemenu" folder

kndr’s picture

Status: Active » Needs review
StatusFileSize
new453 bytes

Patching this issue is quite simple. We must prevent Drupal behaviours from beeing processed twice. I've attached patch. It works for me.

emilyf’s picture

Status: Needs review » Reviewed & tested by the community

patch works great. thanks.

AlexisWilke’s picture

Status: Reviewed & tested by the community » Fixed

Patched applied, looks good to me. 8-)

It will be checked in shortly.

Thank you.
Alexis Wilke

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nor4a’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Closed (fixed) » Needs review

The problem is back in the IE for Drupal 7 - for example when pressing the "add another item" button for multiple fields.
Problem seams to be whith the overlay - as it has different body as the main document and this check fails:

    if ($('body').hasClass('simplemenu-enabled')) {
      return;
    }

Fixed by adding this to the simplemenu.js file "attach" function:

    if(window.parent.document && window.document!=window.parent.document) {
      if($("body", window.parent.document).hasClass('simplemenu-enabled')) {
        return;
      }
    }
crobinson’s picture

Assigned: Unassigned » crobinson
crobinson’s picture

Status: Needs review » Active

Patch pending discussion with Alexis.