Changeset 38754
- Timestamp:
- 10/07/2016 08:55:25 PM (8 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/nav-menus.css
r38616 r38754 26 26 #nav-menu-meta .button-controls { 27 27 margin-bottom: 0; 28 } 29 30 .has-no-menu-item .button-controls { 31 display: none; 28 32 } 29 33 -
trunk/src/wp-admin/includes/nav-menu.php
r38702 r38754 572 572 remove_query_arg( $removed_args ) 573 573 )); 574 ?>#posttype-<?php echo $post_type_name; ?>" class="select-all "><?php _e('Select All'); ?></a>574 ?>#posttype-<?php echo $post_type_name; ?>" class="select-all aria-button-if-js"><?php _e( 'Select All' ); ?></a> 575 575 </span> 576 576 … … 770 770 remove_query_arg($removed_args) 771 771 )); 772 ?>#taxonomy-<?php echo $taxonomy_name; ?>" class="select-all "><?php _e('Select All'); ?></a>772 ?>#taxonomy-<?php echo $taxonomy_name; ?>" class="select-all aria-button-if-js"><?php _e( 'Select All' ); ?></a> 773 773 </span> 774 774 -
trunk/src/wp-admin/js/nav-menu.js
r38613 r38754 1061 1061 $('.quick-search', wrapper).focus(); 1062 1062 1063 // Hide controls in the search tab if no items found. 1064 if ( ! wrapper.find( '.tabs-panel-active .menu-item-title' ).length ) { 1065 wrapper.addClass( 'has-no-menu-item' ); 1066 } else { 1067 wrapper.removeClass( 'has-no-menu-item' ); 1068 } 1069 1063 1070 e.preventDefault(); 1064 1071 } else if ( target.hasClass('select-all') ) { … … 1193 1200 pattern = /menu-item[(\[^]\]*/, 1194 1201 $items = $('<div>').html(resp).find('li'), 1202 wrapper = panel.closest( '.accordion-section-content' ), 1195 1203 $item; 1196 1204 … … 1198 1206 $('.categorychecklist', panel).html( '<li><p>' + navMenuL10n.noResultsFound + '</p></li>' ); 1199 1207 $( '.spinner', panel ).removeClass( 'is-active' ); 1208 wrapper.addClass( 'has-no-menu-item' ); 1200 1209 return; 1201 1210 } … … 1225 1234 $('.categorychecklist', panel).html( $items ); 1226 1235 $( '.spinner', panel ).removeClass( 'is-active' ); 1236 wrapper.removeClass( 'has-no-menu-item' ); 1227 1237 }, 1228 1238
Note: See TracChangeset
for help on using the changeset viewer.