Changeset 28707
- Timestamp:
- 06/09/2014 06:38:29 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/nav-menus.css
r27229 r28707 506 506 display: block; 507 507 margin-right: 13em; 508 } 509 510 .menu-item-handle .menu-item-title.no-title { 511 color: #999; 508 512 } 509 513 -
trunk/src/wp-admin/js/nav-menu.js
r26623 r28707 58 58 59 59 this.initToggles(); 60 61 this.initPreviewing(); 60 62 }, 61 63 … … 531 533 }, 532 534 535 initPreviewing : function() { 536 // Update the item handle title when the navigation label is changed. 537 $( 'body' ).on( 'input', '.edit-menu-item-title', function(e) { 538 var input = $( e.currentTarget ), title, titleEl; 539 title = input.val(); 540 titleEl = input.closest( '.menu-item' ).find( '.menu-item-title' ); 541 // Don't update to empty title. 542 if ( title ) { 543 titleEl.text( title ).removeClass( 'no-title' ); 544 } else { 545 titleEl.text( navMenuL10n.untitled ).addClass( 'no-title' ); 546 } 547 } ); 548 }, 549 533 550 initToggles : function() { 534 551 // init postboxes -
trunk/src/wp-includes/script-loader.php
r28479 r28707 531 531 'noResultsFound' => _x('No results found.', 'search results'), 532 532 'warnDeleteMenu' => __( "You are about to permanently delete this menu. \n 'Cancel' to stop, 'OK' to delete." ), 533 'saveAlert' => __('The changes you made will be lost if you navigate away from this page.') 533 'saveAlert' => __('The changes you made will be lost if you navigate away from this page.'), 534 'untitled' => _x('(no label)', 'missing menu item navigation label') 534 535 ) ); 535 536
Note: See TracChangeset
for help on using the changeset viewer.