Themes screen: Clicking back through history should properly close the overlay.

props gcorne.
fixes #27198.

Built from https://develop.svn.wordpress.org/trunk@27306


git-svn-id: http://core.svn.wordpress.org/trunk@27159 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2014-02-27 00:18:13 +00:00
parent bee73edb62
commit 7481fd46d0
2 changed files with 3 additions and 2 deletions

View File

@ -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' );

File diff suppressed because one or more lines are too long