Changeset 40401
- Timestamp:
- 04/10/2017 12:28:08 PM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-admin/js/customize-nav-menus.js
r40094 r40401 1324 1324 e.preventDefault(); 1325 1325 e.stopPropagation(); 1326 var menuControl = control.getMenuControl(); 1326 var menuControl = control.getMenuControl(), 1327 isDeleteBtn = $( e.target ).is( '.item-delete, .item-delete *' ), 1328 isAddNewBtn = $( e.target ).is( '.add-new-menu-item, .add-new-menu-item *' ); 1329 1330 if ( $( 'body' ).hasClass( 'adding-menu-items' ) && ! isDeleteBtn && ! isAddNewBtn ) { 1331 api.Menus.availableMenuItemsPanel.close(); 1332 } 1333 1327 1334 if ( menuControl.isReordering || menuControl.isSorting ) { 1328 1335 return; … … 2215 2222 } ); 2216 2223 2217 control.container.find( '.menu-delete ' ).on( 'click', function( event ) {2224 control.container.find( '.menu-delete-item' ).on( 'click', function( event ) { 2218 2225 event.stopPropagation(); 2219 2226 event.preventDefault();
Note: See TracChangeset
for help on using the changeset viewer.