Make WordPress Core

Changeset 10428


Ignore:
Timestamp:
01/24/2009 11:58:21 AM (16 years ago)
Author:
azaozz
Message:

Fix Thickbox positioning for browsers pretending to be IE6, props Denis-de-Bernardy, fixes #8933 for trunk

Location:
trunk/wp-includes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/thickbox/thickbox.css

    r9842 r10428  
    3434.TB_overlayBG {
    3535    background-color:#000;
     36    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=75)";
    3637    filter:alpha(opacity=75);
    3738    -moz-opacity: 0.75;
  • trunk/wp-includes/js/thickbox/thickbox.js

    r10326 r10428  
    282282
    283283function tb_position() {
     284var isIE6 = typeof document.body.style.maxHeight === "undefined";
    284285jQuery("#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
     286    if ( ! isIE6 ) { // take away IE6
    286287        jQuery("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
    287288    }
  • trunk/wp-includes/script-loader.php

    r10402 r10428  
    154154    $scripts->add_data( 'jquery-table-hotkeys', 'group', 1 );
    155155
    156     $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20080430m');
     156    $scripts->add( 'thickbox', "/wp-includes/js/thickbox/thickbox.js", array('jquery'), '3.1-20090123');
    157157    $scripts->add_data( 'thickbox', 'group', 1 );
    158158
Note: See TracChangeset for help on using the changeset viewer.