Changeset 33323
- Timestamp:
- 07/19/2015 12:05:26 AM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/customize-nav-menus.css
r33282 r33323 656 656 } 657 657 658 #available-menu-items .accordion-section-title .no-items, 659 #available-menu-items .cannot-expand .accordion-section-title .spinner { 660 display: none; 661 } 662 663 #available-menu-items .cannot-expand .accordion-section-title .no-items { 664 display: block; 665 color: #777; 666 font-weight: normal; 667 float: right; 668 margin-left: 5px; 669 } 670 658 671 #available-menu-items .accordion-section-content { 659 672 padding: 1px 15px 15px 15px; -
trunk/src/wp-admin/js/customize-nav-menus.js
r33283 r33323 299 299 itemTemplate = wp.template( 'available-menu-item' ); 300 300 301 if ( 0 > self.pages[ type] ) {301 if ( 0 > self.pages[ type ] ) { 302 302 return; 303 303 } … … 317 317 items = data.items; 318 318 if ( 0 === items.length ) { 319 if ( 0 === self.pages[ type ] ) { 320 $( '#available-menu-items-' + type ) 321 .addClass( 'cannot-expand' ) 322 .removeClass( 'loading' ) 323 .find( '.accordion-section-title > button' ) 324 .prop( 'tabIndex', -1 ); 325 } 319 326 self.pages[ type ] = -1; 320 327 return; -
trunk/src/wp-includes/class-wp-customize-nav-menus.php
r33322 r33323 722 722 ?> 723 723 <div id="available-menu-items-<?php echo esc_attr( $type->name ); ?>" class="accordion-section"> 724 <h4 class="accordion-section-title"><?php echo esc_html( $type->label ); ?> <span class="spinner"></span> < button type="button" class="not-a-button"><span class="screen-reader-text"><?php _e( 'Toggle' ); ?></span></button></h4>724 <h4 class="accordion-section-title"><?php echo esc_html( $type->label ); ?> <span class="spinner"></span> <span class="no-items"><?php _e( 'No items' ); ?></span> <button type="button" class="not-a-button"><span class="screen-reader-text"><?php _e( 'Toggle' ); ?></span></button></h4> 725 725 <ul class="accordion-section-content" data-type="<?php echo esc_attr( $type->name ); ?>" data-obj_type="post_type"></ul> 726 726 </div> … … 734 734 ?> 735 735 <div id="available-menu-items-<?php echo esc_attr( $tax->name ); ?>" class="accordion-section"> 736 <h4 class="accordion-section-title"><?php echo esc_html( $tax->label ); ?> <span class="spinner"></span> < button type="button" class="not-a-button"><span class="screen-reader-text"><?php _e( 'Toggle' ); ?></span></button></h4>736 <h4 class="accordion-section-title"><?php echo esc_html( $tax->label ); ?> <span class="spinner"></span> <span class="no-items"><?php _e( 'No items' ); ?></span> <button type="button" class="not-a-button"><span class="screen-reader-text"><?php _e( 'Toggle' ); ?></span></button></h4> 737 737 <ul class="accordion-section-content" data-type="<?php echo esc_attr( $tax->name ); ?>" data-obj_type="taxonomy"></ul> 738 738 </div>
Note: See TracChangeset
for help on using the changeset viewer.