diff --git a/src/wp-admin/js/theme.js b/src/wp-admin/js/theme.js index 0e83f4e04b..b114e36a1f 100644 --- a/src/wp-admin/js/theme.js +++ b/src/wp-admin/js/theme.js @@ -454,6 +454,8 @@ themes.view.Theme = wp.Backbone.View.extend({ var self = this, current, preview; + event = event || window.event; + // Bail if the user scrolled on a touch device if ( this.touchDrag === true ) { return this.touchDrag = false; @@ -1658,6 +1660,9 @@ themes.RunInstaller = { themes.router.on( 'route:preview', function( slug ) { request.theme = slug; self.view.collection.query( request ); + self.view.collection.once( 'update', function() { + self.view.view.theme.preview(); + }); }); // Handles sorting / browsing routes