Ticket #20337: 20337.patch
File 20337.patch, 910 bytes (added by , 13 years ago) |
---|
-
wp-includes/js/customize-loader.dev.js
21 21 open: function( params ) { 22 22 params.customize = 'on'; 23 23 24 window.location.hash = '#customize'; 25 26 var hash = window.location.hash; 27 setInterval( function() { 28 if ( window.location.hash != hash ) 29 Loader.close(); 30 }, 100); 31 24 32 this.iframe = $( '<iframe />', { 25 33 src: this.base + '?' + jQuery.param( params ) 26 34 }).appendTo( this.element ); … … 31 39 }, 32 40 close: function() { 33 41 this.element.fadeOut( 200, function() { 34 Loader.iframe.remove(); 42 if ( Loader.iframe ) 43 Loader.iframe.remove(); 35 44 Loader.iframe = null; 36 45 Loader.body.removeClass( 'customize-active full-overlay-active' ); 37 46 });