diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-15 05:28:59 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-12-15 05:28:59 +0000 |
commit | c3080a04019a7c15ad5bb47634be15aae97240d7 (patch) | |
tree | 6595513d77ebbae1532108ebc94926cce099a0f6 /modules/overlay/overlay-parent.js | |
parent | e14a263914c5c78aac0f8f723be5b66328991f0e (diff) | |
download | brdo-c3080a04019a7c15ad5bb47634be15aae97240d7.tar.gz brdo-c3080a04019a7c15ad5bb47634be15aae97240d7.tar.bz2 |
#659486 by Kiphaas7 and xmacinfo: Add back the 'loading' image to the Overlay in a way that does not kill performance.
Diffstat (limited to 'modules/overlay/overlay-parent.js')
-rw-r--r-- | modules/overlay/overlay-parent.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/overlay/overlay-parent.js b/modules/overlay/overlay-parent.js index 88dd43aa1..c79276f82 100644 --- a/modules/overlay/overlay-parent.js +++ b/modules/overlay/overlay-parent.js @@ -254,6 +254,12 @@ Drupal.overlay.create = function () { Drupal.overlay.load = function (url) { var self = this; var iframe = self.iframe.$element.get(0); + + // Add a loaded class to the overlay once the iframe is loaded. + $(iframe).load(function () { + $('.overlay').addClass('overlay-loaded'); + }); + // Get the document object of the iframe window. // @see http://xkr.us/articles/dom/iframe-document/ var doc = (iframe.contentWindow || iframe.contentDocument); |