diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-10 17:26:04 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-10 17:26:04 +0000 |
commit | 8bc1fea750627b59ef0a7ff037ebc7c0bae8b42a (patch) | |
tree | 0ec13cf49194e04b45d9d728416b3e849fc8f4e1 /modules/overlay/overlay-child.js | |
parent | fc56c024d3a517676e2145fbdfa92811be089c49 (diff) | |
download | brdo-8bc1fea750627b59ef0a7ff037ebc7c0bae8b42a.tar.gz brdo-8bc1fea750627b59ef0a7ff037ebc7c0bae8b42a.tar.bz2 |
#655614 by David_Rothstein and ksenzee: Remove code that causes changes made by submitting a form in the overlay to not be reflected when the window automatically closes.
Diffstat (limited to 'modules/overlay/overlay-child.js')
-rw-r--r-- | modules/overlay/overlay-child.js | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/modules/overlay/overlay-child.js b/modules/overlay/overlay-child.js index 1b8e54a72..5a81de20f 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); - // If a form is being displayed, it has a hidden field for the parent - // window's location. Pass it that information. Letting the server side - // know the parent window's location lets us avoid unnecessary redirects - // when the overlay window is being closed automatically. - var re = new RegExp('^' + parent.Drupal.settings.basePath); - var path = parent.window.location.pathname.replace(re, ''); - $('#edit-overlay-parent-url').val(path); - // Install onBeforeUnload callback, if module is present. if ($.isObject(Drupal.onBeforeUnload) && !Drupal.onBeforeUnload.callbackExists('overlayChild')) { Drupal.onBeforeUnload.addCallback('overlayChild', function () { |