Index: lams_tool_images/web/includes/javascript/thickbox.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_images/web/includes/javascript/thickbox.js,v diff -u -r1.9 -r1.10 --- lams_tool_images/web/includes/javascript/thickbox.js 18 Dec 2012 10:03:35 -0000 1.9 +++ lams_tool_images/web/includes/javascript/thickbox.js 2 May 2015 10:28:55 -0000 1.10 @@ -7,13 +7,6 @@ //Please, beware! This instance of thickbox.js was modified especially for Image Gallery tool and can't be replaced with the one from lams_central. -//fixed according to: http://jamazon.co.uk/web/2008/03/14/jquerybrowserversion-doesnt-recognise-ie7/ -$.browser.msie6 = -$.browser.msie -&& /MSIE 6\.0/i.test(window.navigator.userAgent) -&& !/MSIE 7\.0/i.test(window.navigator.userAgent) -&& !/MSIE 8\.0/i.test(window.navigator.userAgent); - /*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/ //on page load call tb_init @@ -113,9 +106,9 @@ 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 imageWidth = imgPreloader.width; var initialImageWidth = imageWidth; - var imageHeight = (jQuery.browser.msie) ? parseInt(params['dbHeight']) : imgPreloader.height; + var imageHeight = imgPreloader.height; var initialImageHeight = imageHeight; if (imageWidth > x) { imageHeight = imageHeight * (x / imageWidth); @@ -299,12 +292,6 @@ function tb_position() { jQuery("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'}); - var version = jQuery.browser.version; - if (version instanceof Object) - version=version.number(); - if ( !(jQuery.browser.msie6)) { // take away IE6; fixed according to: http://jamazon.co.uk/web/2008/03/14/jquerybrowserversion-doesnt-recognise-ie7/ - $("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'}); - } } function tb_parseQuery ( query ) {