From 4af38f2119d8753e9602c24f757a277b8c8920bb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 3 Mar 2010 07:39:25 +0000 Subject: - Patch #684474 by casey: overlay was re-applying behaviors. --- modules/overlay/overlay-parent.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/overlay/overlay-parent.js b/modules/overlay/overlay-parent.js index a30b83e9a..b0df0890d 100644 --- a/modules/overlay/overlay-parent.js +++ b/modules/overlay/overlay-parent.js @@ -459,15 +459,16 @@ Drupal.overlay.bindChild = function (iframeWindow, isClosing) { $tabs = $(self.$iframeWindow('
').append($tabs).remove().html()); self.$dialogTitlebar.append($tabs); - if ($tabs.is('.primary')) { - $tabs.find('a').removeClass('overlay-processed'); - Drupal.attachBehaviors($tabs); - } + // Remove any classes from the list element to avoid theme styles // clashing with our styling. $tabs.removeAttr('class'); } + // Re-attach the behaviors we lost while copying elements from the iframe + // document to the parent document. + Drupal.attachBehaviors(self.$dialogTitlebar); + // Try to enhance keyboard based navigation of the overlay. // Logic inspired by the open() method in ui.dialog.js, and // http://wiki.codetalks.org/wiki/index.php/Docs/Keyboard_navigable_JS_widgets -- cgit v1.2.3