Index: lams_tool_assessment/web/includes/javascript/thickbox.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_assessment/web/includes/javascript/Attic/thickbox.js,v diff -u -r1.1 -r1.2 --- lams_tool_assessment/web/includes/javascript/thickbox.js 29 Jan 2009 05:59:05 -0000 1.1 +++ lams_tool_assessment/web/includes/javascript/thickbox.js 23 Jul 2009 16:58:26 -0000 1.2 @@ -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 ) {