Commit 4af38f21 authored by Dries's avatar Dries
Browse files

- Patch #684474 by casey: overlay was re-applying behaviors.

parent 0f3085c3
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment