Theme Customizer: Move contents of customize.loader.css to wp-admin.css. Make markup/CSS for the full-screen overlay modular. see #19910.
git-svn-id: http://svn.automattic.com/wordpress/trunk@20133 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -9,7 +9,7 @@ if ( typeof wp === 'undefined' )
|
||||
this.base = $( '.admin-url', this.element ).val();
|
||||
this.doc_title = $( document ).attr( 'title' );
|
||||
|
||||
this.element.on( 'click', '.return-to-admin', function() {
|
||||
this.element.on( 'click', '.close-full-overlay', function() {
|
||||
Loader.close();
|
||||
return false;
|
||||
});
|
||||
@@ -31,14 +31,14 @@ if ( typeof wp === 'undefined' )
|
||||
});
|
||||
|
||||
this.element.fadeIn( 200, function() {
|
||||
Loader.body.addClass( 'customize-active' );
|
||||
Loader.body.addClass( 'customize-active full-overlay-active' );
|
||||
});
|
||||
},
|
||||
close: function() {
|
||||
this.element.fadeOut( 200, function() {
|
||||
Loader.iframe.remove();
|
||||
Loader.iframe = null;
|
||||
Loader.body.removeClass( 'customize-active' );
|
||||
Loader.body.removeClass( 'customize-active full-overlay-active' );
|
||||
$( document ).attr( 'title', Loader.doc_title );
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user