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
This commit is contained in:
parent
3d8a61bc79
commit
c1c57d5bcc
@ -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' );
|
||||
|
Loading…
Reference in New Issue
Block a user