From c832888234528f076daf2cdca03d86e68eb51a7d Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Wed, 1 Jul 2009 20:57:21 +0000 Subject: [PATCH] Centres the overlay container as best as it can (given that we can't calculate the height of the XHR response container without actually loading it into the DOM). --- js/jquery.joverlay.min.js | 2 +- js/util.js | 4 ++-- theme/base/css/display.css | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/js/jquery.joverlay.min.js b/js/jquery.joverlay.min.js index 170302ed6f..44cd46043f 100644 --- a/js/jquery.joverlay.min.js +++ b/js/jquery.joverlay.min.js @@ -4,4 +4,4 @@ * Requires: jQuery 1.3+ * Packer from http://dean.edwards.name/packer/ */ -(function($){var g=$.browser.msie&&$.browser.version==6.0;var h=null;var i=null;$.fn.jOverlay=function(b){if($('#jOverlay').length){$.closeOverlay()}i=null;if(h!==null){clearTimeout(h)}var b=$.extend({},$.fn.jOverlay.options,b);function center(a){if(b.center){$.center(a)}}var c=this.is('*')?this:'#jOverlayContent';var d=g?'absolute':'fixed';var e=/([^\/\\]+)\.(png|gif|jpeg|jpg|bmp)$/i.test(b.url);var f=b.imgLoading?"":'';$('body').prepend(f+"
"+"