Index: lams_tool_images/web/includes/javascript/thickbox.js =================================================================== diff -u -r2f21856ec2ab85b47c93cfcc3fa2c8769be65077 -r5776a8fe0290ad1e2dea3517b6656a7243568d0e --- lams_tool_images/web/includes/javascript/thickbox.js (.../thickbox.js) (revision 2f21856ec2ab85b47c93cfcc3fa2c8769be65077) +++ lams_tool_images/web/includes/javascript/thickbox.js (.../thickbox.js) (revision 5776a8fe0290ad1e2dea3517b6656a7243568d0e) @@ -7,6 +7,13 @@ var tb_pathToImage = pathToImageFolder + "loadingAnimation.gif"; +//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 @@ -293,10 +300,13 @@ } function tb_position() { - $("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'}); - if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6 - $("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'}); - } + 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 ) {