Customizer: Update selector, missed in [31984].

see #28784.

git-svn-id: https://develop.svn.wordpress.org/trunk@31985 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2015-04-02 17:17:19 +00:00
parent 340cb573ae
commit 2563a4f802
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@
// If the available widgets panel is open and the customize controls are // If the available widgets panel is open and the customize controls are
// interacted with (i.e. available widgets panel is blurred) then close the // interacted with (i.e. available widgets panel is blurred) then close the
// available widgets panel. // available widgets panel.
$( '#customize-controls, .customize-close-overlay' ).on( 'click keydown', function( e ) { $( '#customize-controls, .customize-overlay-close' ).on( 'click keydown', function( e ) {
var isAddNewBtn = $( e.target ).is( '.add-new-widget, .add-new-widget *' ); var isAddNewBtn = $( e.target ).is( '.add-new-widget, .add-new-widget *' );
if ( $( 'body' ).hasClass( 'adding-widget' ) && ! isAddNewBtn ) { if ( $( 'body' ).hasClass( 'adding-widget' ) && ! isAddNewBtn ) {
self.close(); self.close();