Make WordPress Core

Ticket #33311: 33311.2.patch

File 33311.2.patch, 6.8 KB (added by afercia, 10 years ago)

Adds support for IE 8

  • src/wp-admin/css/common.css

     
    26962696body.plugins-php #TB_window,
    26972697body.update-core-php #TB_window,
    26982698body.index-php #TB_window {
    2699         background: #fcfcfc url( ../images/spinner.gif ) no-repeat center;
     2699        background: #fcfcfc;
    27002700}
    27012701
     2702/* IE 8 needs a change in the pseudo element content */
     2703.ie8 body.plugin-install-php #TB_window:before,
     2704.ie8 body.import-php #TB_window:before,
     2705.ie8 body.plugins-php #TB_window:before,
     2706.ie8 body.update-core-php #TB_window:before,
     2707.ie8 body.index-php #TB_window:before {
     2708        content: " ";
     2709        background: none;
     2710}
     2711
     2712body.plugin-install-php #TB_window.thickbox-loading:before,
     2713body.import-php #TB_window.thickbox-loading:before,
     2714body.plugins-php #TB_window.thickbox-loading:before,
     2715body.update-core-php #TB_window.thickbox-loading:before,
     2716body.index-php #TB_window.thickbox-loading:before {
     2717        content: "";
     2718        display: block;
     2719        width: 20px;
     2720        height: 20px;
     2721        position: absolute;
     2722        left: 50%;
     2723        top: 50%;
     2724        z-index: -1;
     2725        margin: -10px 0 0 -10px;
     2726        background: #fcfcfc url(../images/spinner.gif) no-repeat center;
     2727        -webkit-background-size: 20px 20px;
     2728        background-size: 20px 20px;
     2729        -webkit-transform: translateZ(0);
     2730        transform: translateZ(0);
     2731}
     2732
    27022733@media print,
    27032734        (-webkit-min-device-pixel-ratio: 1.25),
    27042735        (min-resolution: 120dpi) {
    27052736
    2706         body.plugin-install-php #TB_window,
    2707         body.import-php #TB_window,
    2708         body.plugins-php #TB_window,
    2709         body.update-core-php #TB_window,
    2710         body.index-php #TB_window {
    2711                 background: #fcfcfc url( ../images/spinner-2x.gif ) no-repeat center;
    2712                 -webkit-background-size: 20px 20px;
    2713                 background-size: 20px 20px;
     2737        body.plugin-install-php #TB_window.thickbox-loading:before,
     2738        body.import-php #TB_window.thickbox-loading:before,
     2739        body.plugins-php #TB_window.thickbox-loading:before,
     2740        body.update-core-php #TB_window.thickbox-loading:before,
     2741        body.index-php #TB_window.thickbox-loading:before {
     2742                background: #fcfcfc url(../images/spinner-2x.gif) no-repeat center;
    27142743        }
    27152744}
    27162745
  • src/wp-includes/js/thickbox/thickbox.css

     
    1212
    1313#TB_window {
    1414        position: fixed;
    15         background: #fff;
     15        background-color: #fff;
    1616        z-index: 100050; /* Above DFW. */
    1717        visibility: hidden;
    1818        text-align: left;
     
    5555        float: left;
    5656        font-weight: 600;
    5757        line-height: 29px;
    58         overflow: hidden; 
     58        overflow: hidden;
    5959        padding: 0 29px 0 10px;
    6060        text-overflow: ellipsis;
    6161        white-space: nowrap;
  • src/wp-includes/js/thickbox/thickbox.js

     
    1818        imgLoader.src = tb_pathToImage;
    1919});
    2020
    21 //add thickbox to href & area elements that have a class of .thickbox
     21/*
     22 * Add thickbox to href & area elements that have a class of .thickbox.
     23 * Remove the loading indicator when content in an iframe has loaded.
     24 */
    2225function tb_init(domChunk){
    23         jQuery('body').on('click', domChunk, tb_click);
     26        jQuery( 'body' )
     27                .on( 'click', domChunk, tb_click )
     28                .on( 'thickbox:iframe:loaded', function() {
     29                        jQuery( '#TB_window' ).removeClass( 'thickbox-loading' );
     30                });
    2431}
    2532
    2633function tb_click(){
     
    3946                        jQuery("body","html").css({height: "100%", width: "100%"});
    4047                        jQuery("html").css("overflow","hidden");
    4148                        if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
    42                                 jQuery("body").append("<iframe id='TB_HideSelect'>"+thickboxL10n.noiframes+"</iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
     49                                jQuery("body").append("<iframe id='TB_HideSelect'>"+thickboxL10n.noiframes+"</iframe><div id='TB_overlay'></div><div id='TB_window' class='thickbox-loading'></div>");
    4350                                jQuery("#TB_overlay").click(tb_remove);
    4451                        }
    4552                }else{//all others
    4653                        if(document.getElementById("TB_overlay") === null){
    47                                 jQuery("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
     54                                jQuery("body").append("<div id='TB_overlay'></div><div id='TB_window' class='thickbox-loading'></div>");
    4855                                jQuery("#TB_overlay").click(tb_remove);
    4956                                jQuery( 'body' ).addClass( 'modal-open' );
    5057                        }
     
    195202                                        urlNoQuery = url.split('TB_');
    196203                                        jQuery("#TB_iframeContent").remove();
    197204                                        if(params['modal'] != "true"){//iframe no modal
    198                                                 jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><div class='tb-close-icon'></div></a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' >"+thickboxL10n.noiframes+"</iframe>");
     205                                                jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><div class='tb-close-icon'></div></a></div></div><iframe frameborder='0' hspace='0' allowTransparency='true' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' >"+thickboxL10n.noiframes+"</iframe>");
    199206                                        }else{//iframe modal
    200207                                        jQuery("#TB_overlay").unbind();
    201                                                 jQuery("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'>"+thickboxL10n.noiframes+"</iframe>");
     208                                                jQuery("#TB_window").append("<iframe frameborder='0' hspace='0' allowTransparency='true' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'>"+thickboxL10n.noiframes+"</iframe>");
    202209                                        }
    203210                        }else{// not an iframe, ajax
    204211                                        if(jQuery("#TB_window").css("visibility") != "visible"){
     
    260267//helper functions below
    261268function tb_showIframe(){
    262269        jQuery("#TB_load").remove();
    263         jQuery("#TB_window").css({'visibility':'visible'});
     270        jQuery("#TB_window").css({'visibility':'visible'}).trigger( 'thickbox:iframe:loaded' );
    264271}
    265272
    266273function tb_remove() {