Changeset 35281
- Timestamp:
- 10/20/2015 05:35:07 AM (9 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/themes.css
r35220 r35281 1635 1635 1636 1636 .theme-install-overlay .wp-full-overlay-main { 1637 position: relative; 1638 z-index: 0; 1639 background-color: #fff; 1640 } 1641 1642 .theme-install-overlay .wp-full-overlay-main:before { 1643 content: ''; 1644 display: block; 1645 width: 20px; 1646 height: 20px; 1647 position: absolute; 1648 left: 50%; 1649 top: 50%; 1650 z-index: -1; 1651 margin: -10px 0 0 -10px; 1652 transform: translateZ(0); 1637 1653 background: #fff url(../images/spinner.gif) no-repeat center center; 1638 1654 -webkit-background-size: 20px 20px; 1639 1655 background-size: 20px 20px; 1656 } 1657 1658 .theme-install-overlay.iframe-ready .wp-full-overlay-main:before { 1659 background-image: none; 1640 1660 } 1641 1661 … … 1657 1677 #customize-preview.wp-full-overlay-main, 1658 1678 .customize-loading #customize-container, 1659 .theme-install-overlay .wp-full-overlay-main {1679 .theme-install-overlay .wp-full-overlay-main:before { 1660 1680 background-image: url(../images/spinner-2x.gif); 1661 1681 } -
trunk/src/wp-admin/js/theme.js
r35273 r35281 767 767 768 768 render: function() { 769 var data = this.model.toJSON(); 770 771 this.$el.html( this.html( data ) ); 769 var self = this, 770 data = this.model.toJSON(); 771 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 } ); … … 777 778 $( '.close-full-overlay' ).focus(); 778 779 }); 780 781 this.$el.find( 'iframe' ).one( 'load', function() { 782 self.iframeLoaded(); 783 }); 784 }, 785 786 iframeLoaded: function() { 787 this.$el.addClass( 'iframe-ready' ); 779 788 }, 780 789 … … 787 796 themes.focusedTheme.focus(); 788 797 } 789 }) ;798 }).removeClass( 'iframe-ready' ); 790 799 791 800 themes.router.navigate( themes.router.baseUrl( '' ) );
Note: See TracChangeset
for help on using the changeset viewer.