Customizer: Use correct event variable when moving widgets to another widget area.

Fixes "ReferenceError: event is not defined error." in Firefox.

props tywayne.
fixes #30818.
Built from https://develop.svn.wordpress.org/trunk@30992


git-svn-id: http://core.svn.wordpress.org/trunk@30974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2014-12-23 17:24:24 +00:00
parent 93605deef5
commit 14abcecf81
2 changed files with 3 additions and 3 deletions

View File

@ -684,11 +684,11 @@
/**
* Handle selecting a sidebar to move to
*/
this.container.find( '.widget-area-select' ).on( 'click keypress', 'li', function( e ) {
this.container.find( '.widget-area-select' ).on( 'click keypress', 'li', function( event ) {
if ( event.type === 'keypress' && ( event.which !== 13 && event.which !== 32 ) ) {
return;
}
e.preventDefault();
event.preventDefault();
selectSidebarItem( $( this ) );
} );

File diff suppressed because one or more lines are too long