Disable background page scrolling when modals are open.
props celloexpressions. fixes #29074. Built from https://develop.svn.wordpress.org/trunk@29346 git-svn-id: http://core.svn.wordpress.org/trunk@29124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -701,7 +701,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' );
|
||||
$( 'body' ).removeClass( 'modal-open' );
|
||||
this.remove();
|
||||
this.unbind();
|
||||
this.trigger( 'theme:collapse' );
|
||||
@@ -1000,7 +1000,7 @@ themes.view.Themes = wp.Backbone.View.extend({
|
||||
|
||||
// Sets this.view to 'detail'
|
||||
this.setView( 'detail' );
|
||||
$( 'body' ).addClass( 'theme-overlay-open' );
|
||||
$( 'body' ).addClass( 'modal-open' );
|
||||
|
||||
// Set up the theme details view
|
||||
this.overlay = new themes.view.Details({
|
||||
|
||||
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
Reference in New Issue
Block a user