]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/js/thickbox/thickbox.js
Wordpress 2.7.1
[autoinstalls/wordpress.git] / wp-includes / js / thickbox / thickbox.js
index 5770c8b0a4f6cd2219c9a6d3e23e1cdaca53a8cf..f2873c91aa52dc372956fa48d5d97b882af19b31 100644 (file)
@@ -281,8 +281,9 @@ function tb_remove() {
 }
 
 function tb_position() {
+var isIE6 = typeof document.body.style.maxHeight === "undefined";
 jQuery("#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
+       if ( ! isIE6 ) { // take away IE6
                jQuery("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
        }
 }