Index: lams_central/web/includes/javascript/thickbox.patched.js =================================================================== diff -u -r4f33380083bd35fd6d0851de9def290c62ffc3c9 -r2f5473044ec01bd94a2ea8e5262b2a200f1e6da6 --- lams_central/web/includes/javascript/thickbox.patched.js (.../thickbox.patched.js) (revision 4f33380083bd35fd6d0851de9def290c62ffc3c9) +++ lams_central/web/includes/javascript/thickbox.patched.js (.../thickbox.patched.js) (revision 2f5473044ec01bd94a2ea8e5262b2a200f1e6da6) @@ -5,7 +5,7 @@ * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php */ -var tb_pathToImage = pathToImageFolder + "loadingAnimation.gif"; +var tb_pathToImage = "images/loadingAnimation.gif"; // fixed according to: http://jamazon.co.uk/web/2008/03/14/jquerybrowserversion-doesnt-recognise-ie7/ $.browser.msie6 = @@ -72,12 +72,8 @@ var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/; var urlType = baseURL.toLowerCase().match(urlString); - var queryString = url.replace(/^[^\?]+\??/,''); - var params = tb_parseQuery( queryString ); - - - if((!params['TB_iframe'])){//code to show images - + if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images + TB_PrevCaption = ""; TB_PrevURL = ""; TB_PrevHTML = ""; @@ -115,10 +111,8 @@ var pagesize = tb_getPageSize(); var x = pagesize[0] - 150; var y = pagesize[1] - 150; - var imageWidth = (jQuery.browser.msie) ? parseInt(params['dbWidth']) : imgPreloader.width; - var initialImageWidth = imageWidth; - var imageHeight = (jQuery.browser.msie) ? parseInt(params['dbHeight']) : imgPreloader.height; - var initialImageHeight = imageHeight; + var imageWidth = imgPreloader.width; + var imageHeight = imgPreloader.height; if (imageWidth > x) { imageHeight = imageHeight * (x / imageWidth); imageWidth = x; @@ -138,13 +132,8 @@ TB_WIDTH = imageWidth + 30; TB_HEIGHT = imageHeight + 60; - - if ((initialImageWidth > x) ||(initialImageHeight > y)) { - $("#TB_window").append("" + "