WordPress.org

Make WordPress Core

Changeset 8194


Ignore:
Timestamp:
06/25/08 16:58:27 (6 years ago)
Author:
ryan
Message:

Test for feature instead of browser to fix TB positioning for browsers pretending to be IE6. Props azaozz. fixes #6676

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/media-upload.js

    r8189 r8194  
    2525            $('#TB_iframeContent').width( W - 50 ).height( H - 75 ); 
    2626            tbWindow.css({'margin-left': '-' + parseInt((( W - 50 ) / 2),10) + 'px'}); 
    27             if ( ! ( $.browser.msie && $.browser.version.substr(0,1) < 7 ) ) 
     27            if ( typeof document.body.style.maxWidth != 'undefined' ) 
    2828                tbWindow.css({'top':'20px','margin-top':'0'}); 
    2929            $('#TB_title').css({'background-color':'#222','color':'#cfcfcf'}); 
  • trunk/wp-admin/js/theme-preview.js

    r7989 r8194  
    1313            $('#TB_iframeContent').width( W - 90 ).height( H - 90 ); 
    1414            tbWindow.css({'margin-left': '-' + parseInt((( W - 90 ) / 2),10) + 'px'}); 
    15             if ( ! ( $.browser.msie && $.browser.version.substr(0,1) < 7 ) ) 
     15            if ( typeof document.body.style.maxWidth != 'undefined' ) 
    1616                tbWindow.css({'top':'30px','margin-top':'0'}); 
    1717        }; 
  • trunk/wp-includes/script-loader.php

    r8189 r8194  
    160160        ) ); 
    161161        $scripts->add( 'admin-gallery', '/wp-admin/js/gallery.js', array( 'jquery-ui-sortable' ), '20080520' ); 
    162         $scripts->add( 'media-upload', '/wp-admin/js/media-upload.js', array( 'thickbox' ), '20080624' ); 
     162        $scripts->add( 'media-upload', '/wp-admin/js/media-upload.js', array( 'thickbox' ), '20080625' ); 
    163163        $scripts->localize( 'upload', 'uploadL10n', array( 
    164164            'browseTitle' => attribute_escape(__('Browse your files')), 
     
    201201        )); 
    202202         
    203         $scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080523' ); 
     203        $scripts->add( 'theme-preview', '/wp-admin/js/theme-preview.js', array( 'thickbox', 'jquery' ), '20080625' ); 
    204204    } 
    205205} 
Note: See TracChangeset for help on using the changeset viewer.