diff options
-rw-r--r-- | modules/overlay/overlay-child.js | 8 | ||||
-rw-r--r-- | modules/overlay/overlay-parent.js | 20 |
2 files changed, 0 insertions, 28 deletions
diff --git a/modules/overlay/overlay-child.js b/modules/overlay/overlay-child.js index 93ae1f34a..1445b32b7 100644 --- a/modules/overlay/overlay-child.js +++ b/modules/overlay/overlay-child.js @@ -54,14 +54,6 @@ Drupal.behaviors.overlayChild = { // Ok, now we can tell the parent window we're ready. parent.Drupal.overlay.bindChild(window); - // Install onBeforeUnload callback, if module is present. - if ($.isObject(Drupal.onBeforeUnload) && !Drupal.onBeforeUnload.callbackExists('overlayChild')) { - Drupal.onBeforeUnload.addCallback('overlayChild', function () { - // Tell the parent window we're unloading. - parent.Drupal.overlay.unbindChild(window); - }); - } - // Attach child related behaviors to the iframe document. self.attachBehaviors(context, settings); } diff --git a/modules/overlay/overlay-parent.js b/modules/overlay/overlay-parent.js index 713f4c430..b2f0b16d6 100644 --- a/modules/overlay/overlay-parent.js +++ b/modules/overlay/overlay-parent.js @@ -531,26 +531,6 @@ Drupal.overlay.bindChild = function (iframeWindow, isClosing) { }; /** - * Unbind the child window. - * - * Remove keyboard event handlers, reset title and hide the iframe. - */ -Drupal.overlay.unbindChild = function (iframeWindow) { - var self = this; - var $iframeDocument = iframeWindow.jQuery(iframeWindow.document); - - // Prevent memory leaks by explicitly unbinding keyboard event handler - // on the child document. - $iframeDocument.unbind('keydown.overlay-event'); - - // Change the overlay title. - self.$container.dialog('option', 'title', Drupal.t('Please wait...')); - - // Hide the iframe element. - self.$iframe.fadeOut('fast'); -}; - -/** * Check if the given link is in the administrative section of the site. * * @param url |