Ticket #32800: 32800.2.diff
File 32800.2.diff, 877 bytes (added by , 8 years ago) |
---|
-
wp-admin/js/customize-nav-menus.js
1676 1676 select.append( new Option( control.setting().name, menuId ) ); 1677 1677 } 1678 1678 } ); 1679 $( '#available-widgets-list .widget-inside:has(input.id_base[value=nav_menu]) select:first' ).append( new Option( control.setting().name, menuId ) );1680 1679 } 1681 1680 }, 1682 1681 … … 2231 2230 // Clear name field. 2232 2231 nameInput.val( '' ); 2233 2232 2233 /** 2234 * Add the new menu to any custom menu widgets 2235 */ 2236 $( '#available-widgets-list .widget-inside:has(input.id_base[value=nav_menu]) select:first' ).append( new Option( name, placeholderId ) ); 2237 2238 2234 2239 wp.a11y.speak( api.Menus.data.l10n.menuAdded ); 2235 2240 2236 2241 // Focus on the new menu section.