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.

git-svn-id: https://develop.svn.wordpress.org/trunk@30992 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2014-12-23 17:23:16 +00:00
parent c05e46e4d1
commit f3d83c3f6c
1 changed files with 2 additions and 2 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 ) );
} );