Make WordPress Core

Ticket #32814: 32814.diff

File 32814.diff, 599 bytes (added by adamsilverstein, 10 years ago)

initial work on adding menus into custom menu widget on the fly

  • wp-admin/js/customize-nav-menus.js

     
    22312230                        // Clear name field.
    22322231                        nameInput.val( '' );
    22332232
     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
    22342239                        wp.a11y.speak( api.Menus.data.l10n.menuAdded );
    22352240
    22362241                        // Focus on the new menu section.