Ticket #33322: 33322.2.patch
File 33322.2.patch, 1.7 KB (added by , 9 years ago) |
---|
-
src/wp-admin/css/themes.css
1638 1638 background-size: 20px 20px; 1639 1639 } 1640 1640 1641 .theme-install-overlay.iframe-ready .wp-full-overlay-main { 1642 background-image: none; 1643 } 1644 1641 1645 /* =Media Queries 1642 1646 -------------------------------------------------------------- */ 1643 1647 -
src/wp-admin/js/theme.js
766 766 html: themes.template( 'theme-preview' ), 767 767 768 768 render: function() { 769 var data = this.model.toJSON(); 769 var self = this, 770 data = this.model.toJSON(); 770 771 771 this.$el. html( this.html( data ) );772 this.$el.removeClass( 'iframe-ready' ).html( this.html( data ) ); 772 773 773 774 themes.router.navigate( themes.router.baseUrl( themes.router.themePath + this.model.get( 'id' ) ), { replace: true } ); 774 775 … … 776 777 $( 'body' ).addClass( 'theme-installer-active full-overlay-active' ); 777 778 $( '.close-full-overlay' ).focus(); 778 779 }); 780 781 this.$el.find( 'iframe' ).one( 'load', function() { 782 self.iframeLoaded(); 783 }); 779 784 }, 780 785 786 iframeLoaded: function() { 787 this.$el.addClass( 'iframe-ready' ); 788 }, 789 781 790 close: function() { 782 791 this.$el.fadeOut( 200, function() { 783 792 $( 'body' ).removeClass( 'theme-installer-active full-overlay-active' ); … … 786 795 if ( themes.focusedTheme ) { 787 796 themes.focusedTheme.focus(); 788 797 } 789 }) ;798 }).removeClass( 'iframe-ready' ); 790 799 791 800 themes.router.navigate( themes.router.baseUrl( '' ) ); 792 801 this.trigger( 'preview:close' );