Ticket #25963: 25963.2.diff
File 25963.2.diff, 796 bytes (added by , 11 years ago) |
---|
-
src/wp-admin/js/theme.js
497 497 }); 498 498 499 499 this.overlay.render(); 500 this.$el.append( this.overlay.el ); 500 if ( 0 === $( 'div.theme-overlay' ).length ) { 501 this.$el.append( this.overlay.el ); 502 } else { 503 $( 'div.theme-overlay' ).html( this.overlay.el ); 504 } 501 505 502 506 this.overlay.screenshotGallery(); 503 507 … … 646 650 this.routes(); 647 651 648 652 // Set ups history with pushState and our root 649 Backbone.history.start({ root: themes.data.settings.root }); 653 if ( window.history && window.history.pushState ) { 654 Backbone.history.start({ root: themes.data.settings.root }); 655 } 650 656 }, 651 657 652 658 routes: function() {