diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-03 07:39:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-03 07:39:25 +0000 |
commit | 4af38f2119d8753e9602c24f757a277b8c8920bb (patch) | |
tree | 21f5361f368f5c590cea490cde8eae4c2e65cc37 /modules | |
parent | 0f3085c3b7485b409f4176f5b549e2e4a937f5fa (diff) | |
download | brdo-4af38f2119d8753e9602c24f757a277b8c8920bb.tar.gz brdo-4af38f2119d8753e9602c24f757a277b8c8920bb.tar.bz2 |
- Patch #684474 by casey: overlay was re-applying behaviors.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/overlay/overlay-parent.js | 9 |
1 files changed, 5 insertions, 4 deletions
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('<div>').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 |