WordPress.org

Make WordPress Core

Ticket #8933: 8933.diff

File 8933.diff, 1.1 KB (added by Denis-de-Bernardy, 9 years ago)

obsoletes previous patch -- check for xmlhttprequest to nail ie6

  • Users/denis/Sites/sem-pro/wp-includes/js/thickbox/thickbox.js

     
    88var tb_pathToImage = "../wp-includes/js/thickbox/loadingAnimation.gif";
    99var tb_closeImage = "../wp-includes/js/thickbox/tb-close.png";
    1010
     11jQuery.browser.msie6 = jQuery.browser.msie
     12        && parseInt(jQuery.browser.version) == 6
     13        && typeof this.XMLHttpRequest == 'undefined';
     14
    1115/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
    1216
    1317//on page load call tb_init
     
    282286
    283287function tb_position() {
    284288jQuery("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
    285         if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6
     289        if ( !jQuery.browser.msie6 ) { // take away IE6
    286290                jQuery("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
    287291        }
    288292}