Ticket #38953: 38953.patch
File 38953.patch, 1.5 KB (added by , 8 years ago) |
---|
-
src/wp-admin/css/customize-nav-menus.css
719 719 opacity: 0.4; 720 720 } 721 721 722 body.adding-menu-items #customize-preview iframe { 723 pointer-events: none; 724 } 725 722 726 .menu-item-handle .spinner { 723 727 display: none; 724 728 float: left; -
src/wp-admin/js/customize-nav-menus.js
666 666 667 667 // Opens the panel. 668 668 open: function( menuControl ) { 669 var self = this; 670 669 671 this.currentMenuControl = menuControl; 670 672 671 673 this.itemSectionHeight(); … … 672 674 673 675 $( 'body' ).addClass( 'adding-menu-items' ); 674 676 677 jQuery('#customize-preview').click(function() { 678 self.close(); 679 this.unbind(); 680 }); 681 675 682 // Collapse all controls. 676 683 _( this.currentMenuControl.getMenuItemControls() ).each( function( control ) { 677 684 control.collapseForm(); … … 1320 1327 this.container.find( '.menu-item-handle' ).on( 'click', function( e ) { 1321 1328 e.preventDefault(); 1322 1329 e.stopPropagation(); 1330 api.Menus.availableMenuItemsPanel.close(); 1323 1331 var menuControl = control.getMenuControl(); 1324 1332 if ( menuControl.isReordering || menuControl.isSorting ) { 1325 1333 return;