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:
Dominik Schilling
2014-08-01 20:15:15 +00:00
parent 6018cd50b6
commit fb9084eed3
11 changed files with 23 additions and 15 deletions

View File

@@ -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({

File diff suppressed because one or more lines are too long