Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Created November 4, 2012 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitaibu/4012289 to your computer and use it in GitHub Desktop.
Save amitaibu/4012289 to your computer and use it in GitHub Desktop.
Drupal.behaviors.hvNinesixty = {
attach: function (context) {
$(document)
.bind('drupalOverlayOpen', function() {
$('iframe:not(iframe.overlay-element)').hide();
})
.bind('drupalOverlayClose', function() {
$('iframe:not(iframe.overlay-element)').show();
})
if (Drupal.behaviors.overlayParent == undefined) {
return;
}
if (Drupal.behaviors.overlayParent.processed == true) {
$('html').addClass('overlay-ready');
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment