Ticket #33311: 33311.2.patch
File 33311.2.patch, 6.8 KB (added by , 10 years ago) |
---|
-
src/wp-admin/css/common.css
2696 2696 body.plugins-php #TB_window, 2697 2697 body.update-core-php #TB_window, 2698 2698 body.index-php #TB_window { 2699 background: #fcfcfc url( ../images/spinner.gif ) no-repeat center;2699 background: #fcfcfc; 2700 2700 } 2701 2701 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 2712 body.plugin-install-php #TB_window.thickbox-loading:before, 2713 body.import-php #TB_window.thickbox-loading:before, 2714 body.plugins-php #TB_window.thickbox-loading:before, 2715 body.update-core-php #TB_window.thickbox-loading:before, 2716 body.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 2702 2733 @media print, 2703 2734 (-webkit-min-device-pixel-ratio: 1.25), 2704 2735 (min-resolution: 120dpi) { 2705 2736 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; 2714 2743 } 2715 2744 } 2716 2745 -
src/wp-includes/js/thickbox/thickbox.css
12 12 13 13 #TB_window { 14 14 position: fixed; 15 background : #fff;15 background-color: #fff; 16 16 z-index: 100050; /* Above DFW. */ 17 17 visibility: hidden; 18 18 text-align: left; … … 55 55 float: left; 56 56 font-weight: 600; 57 57 line-height: 29px; 58 overflow: hidden; 58 overflow: hidden; 59 59 padding: 0 29px 0 10px; 60 60 text-overflow: ellipsis; 61 61 white-space: nowrap; -
src/wp-includes/js/thickbox/thickbox.js
18 18 imgLoader.src = tb_pathToImage; 19 19 }); 20 20 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 */ 22 25 function 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 }); 24 31 } 25 32 26 33 function tb_click(){ … … 39 46 jQuery("body","html").css({height: "100%", width: "100%"}); 40 47 jQuery("html").css("overflow","hidden"); 41 48 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>"); 43 50 jQuery("#TB_overlay").click(tb_remove); 44 51 } 45 52 }else{//all others 46 53 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>"); 48 55 jQuery("#TB_overlay").click(tb_remove); 49 56 jQuery( 'body' ).addClass( 'modal-open' ); 50 57 } … … 195 202 urlNoQuery = url.split('TB_'); 196 203 jQuery("#TB_iframeContent").remove(); 197 204 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>"); 199 206 }else{//iframe modal 200 207 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>"); 202 209 } 203 210 }else{// not an iframe, ajax 204 211 if(jQuery("#TB_window").css("visibility") != "visible"){ … … 260 267 //helper functions below 261 268 function tb_showIframe(){ 262 269 jQuery("#TB_load").remove(); 263 jQuery("#TB_window").css({'visibility':'visible'}) ;270 jQuery("#TB_window").css({'visibility':'visible'}).trigger( 'thickbox:iframe:loaded' ); 264 271 } 265 272 266 273 function tb_remove() {