Changeset 54316
- Timestamp:
- 09/26/2022 09:42:12 PM (2 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/lib/nav-menu.js
r52166 r54316 1558 1558 }); 1559 1559 1560 // Show bulk action 1561 $( document ).on( 'menu-item-added', function() { 1562 if ( ! $( '.bulk-actions' ).is( ':visible' ) ) { 1563 $( '.bulk-actions' ).show(); 1564 } 1565 } ); 1566 1567 // Hide bulk action 1568 $( document ).on( 'menu-removing-item', function( e, el ) { 1569 var menuElement = $( el ).parents( '#menu-to-edit' ); 1570 if ( menuElement.find( 'li' ).length === 1 && $( '.bulk-actions' ).is( ':visible' ) ) { 1571 $( '.bulk-actions' ).hide(); 1572 } 1573 } ); 1574 1560 1575 })(jQuery); -
trunk/src/wp-admin/nav-menus.php
r53700 r54316 1001 1001 1002 1002 <?php if ( ! $add_new_screen ) : ?> 1003 <div id="nav-menu-bulk-actions-top" class="bulk-actions" >1003 <div id="nav-menu-bulk-actions-top" class="bulk-actions" <?php echo $hide_style; ?>> 1004 1004 <label class="bulk-select-button" for="bulk-select-switcher-top"> 1005 1005 <input type="checkbox" id="bulk-select-switcher-top" name="bulk-select-switcher-top" class="bulk-select-switcher"> … … 1036 1036 1037 1037 <?php if ( ! $add_new_screen ) : ?> 1038 <div id="nav-menu-bulk-actions-bottom" class="bulk-actions" >1038 <div id="nav-menu-bulk-actions-bottom" class="bulk-actions" <?php echo $hide_style; ?>> 1039 1039 <label class="bulk-select-button" for="bulk-select-switcher-bottom"> 1040 1040 <input type="checkbox" id="bulk-select-switcher-bottom" name="bulk-select-switcher-top" class="bulk-select-switcher">
Note: See TracChangeset
for help on using the changeset viewer.