From 202280fa6b56c07440aa496b5dcad714eefebb56 Mon Sep 17 00:00:00 2001 From: Alexis Wilke Date: Sat, 15 May 2010 10:38:40 +0000 Subject: [PATCH] Do not add the id="simplemenu" in JavaScript. Do it in PHP instead. Added a new superfish parameter added in 1.4.8 (not present in 1.4.1 so it has not side effect to the old version.) --- simplemenu.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/simplemenu.js b/simplemenu.js index 9f092c9c..098281eb 100644 --- a/simplemenu.js +++ b/simplemenu.js @@ -12,7 +12,7 @@ Drupal.behaviors.simplemenuAttach = function(context) { // get the element to add the menu to var element = Drupal.settings.simplemenu.element; - var menu = $(simplemenu).attr("id", "simplemenu").addClass('clear-block'); + var menu = $(simplemenu); switch (Drupal.settings.simplemenu.placement) { case 'prepend': @@ -33,11 +33,13 @@ Drupal.behaviors.simplemenuAttach = function(context) { // Build menu $(menu) + .find('#simplemenu') .superfish({ pathClass: 'current', animation: animation, delay: Drupal.settings.simplemenu.hideDelay, - speed: Drupal.settings.simplemenu.effectSpeed + speed: Drupal.settings.simplemenu.effectSpeed, + autoArrows: false }) .find(">li:has(ul)") .mouseover(function(){