From c1c57d5bcc2af8ba7147cb2f438494e4d0135a45 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 27 Feb 2014 00:17:38 +0000 Subject: [PATCH] Themes screen: Clicking back through history should properly close the overlay. props gcorne. fixes #27198. git-svn-id: https://develop.svn.wordpress.org/trunk@27306 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/theme.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/js/theme.js b/src/wp-admin/js/theme.js index 4c8d3cefbc..7e12958993 100644 --- a/src/wp-admin/js/theme.js +++ b/src/wp-admin/js/theme.js @@ -342,7 +342,7 @@ themes.view.Details = wp.Backbone.View.extend({ // With a quick fade out animation this.$el.fadeOut( 130, function() { // Clicking outside the modal box closes the overlay - $( 'body' ).removeClass( 'theme-overlay-open closing-overlay' ); + $( 'body' ).removeClass( 'closing-overlay' ); // Handle event cleanup self.closeOverlay(); @@ -378,6 +378,7 @@ themes.view.Details = wp.Backbone.View.extend({ // Performs the actions to effectively close // the theme details overlay closeOverlay: function() { + $( 'body' ).removeClass( 'theme-overlay-open' ); this.remove(); this.unbind(); this.trigger( 'theme:collapse' );