Ticket #33311: 33311.patch
File 33311.patch, 4.4 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 body.plugin-install-php #TB_window.thickbox-loading:before, 2703 body.import-php #TB_window.thickbox-loading:before, 2704 body.plugins-php #TB_window.thickbox-loading:before, 2705 body.update-core-php #TB_window.thickbox-loading:before, 2706 body.index-php #TB_window.thickbox-loading:before { 2707 content: ""; 2708 display: block; 2709 width: 20px; 2710 height: 20px; 2711 position: absolute; 2712 left: 50%; 2713 top: 50%; 2714 z-index: -1; 2715 margin: -10px 0 0 -10px; 2716 -webkit-transform: translateZ(0); 2717 transform: translateZ(0); 2718 background: #fcfcfc url(../images/spinner.gif) no-repeat center; 2719 -webkit-background-size: 20px 20px; 2720 background-size: 20px 20px; 2721 } 2722 2702 2723 @media print, 2703 2724 (-webkit-min-device-pixel-ratio: 1.25), 2704 2725 (min-resolution: 120dpi) { 2705 2726 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; 2727 body.plugin-install-php #TB_window.thickbox-loading:before, 2728 body.import-php #TB_window.thickbox-loading:before, 2729 body.plugins-php #TB_window.thickbox-loading:before, 2730 body.update-core-php #TB_window.thickbox-loading:before, 2731 body.index-php #TB_window.thickbox-loading:before { 2732 background: #fcfcfc url(../images/spinner-2x.gif) no-repeat center; 2714 2733 } 2715 2734 } 2716 2735 -
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 } … … 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() {