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.6 -r1.7 --- lams_tool_images/web/includes/javascript/thickbox.js 1 Jul 2009 02:47:04 -0000 1.6 +++ lams_tool_images/web/includes/javascript/thickbox.js 23 Jul 2009 15:46:48 -0000 1.7 @@ -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 ) {