From: Sarven Capadisli Date: Wed, 1 Jul 2009 20:57:21 +0000 (+0000) Subject: Centres the overlay container as best as it can (given that we can't X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c832888234528f076daf2cdca03d86e68eb51a7d;p=quix0rs-gnu-social.git 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). --- 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+"
"+"