mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-10 10:27:57 +01:00
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:
parent
bee73edb62
commit
7481fd46d0
@ -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' );
|
||||
|
2
wp-admin/js/theme.min.js
vendored
2
wp-admin/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user