From 48a23a0517b8df1031e2bbe576ea5e2dae42bec3 Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 29 Jun 2011 14:35:54 -0300 Subject: Making sure ul2finder() runs only once --- finder_menu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/finder_menu.js b/finder_menu.js index bb135ca..e9fecd3 100644 --- a/finder_menu.js +++ b/finder_menu.js @@ -186,5 +186,7 @@ function ul2finder() } Drupal.behaviors.finderMenu = function() { - ul2finder(); + $('#finder:not(.finder-menu-processed)').addClass('finder-menu-processed').each(function() { + ul2finder(); + }); }; -- cgit v1.2.3