Multiple Simple Menus in IE

XerraX - April 2, 2009 - 14:43
Project:SimpleMenu
Version:6.x-1.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

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.

AttachmentSize
IE-Problem.jpg140.65 KB

#1

XerraX - April 2, 2009 - 14:48
Version:6.x-2.x-dev» 6.x-1.x-dev

#2

XerraX - June 17, 2009 - 01:58

i fixed this by reverting

Drupal.behaviors.simplemenuAttach = function(context)

back to

$(document).ready(function()

#3

HallSL - June 18, 2009 - 05:56

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!

#4

XerraX - June 18, 2009 - 15:33

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

AttachmentSize
simplemenu.js_.txt 2.64 KB

#5

kndr - June 29, 2009 - 12:16
Status:active» needs review

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

AttachmentSize
simplemenu-enabled.patch 453 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.