Changeset 35584
- Timestamp:
- 11/09/2015 03:13:09 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/customize-nav-menus.js
r35581 r35584 1013 1013 } 1014 1014 section = api.section( sectionId ); 1015 if ( section && section.expanded()) {1015 if ( ( section && section.expanded() ) || api.settings.autofocus.control === control.id ) { 1016 1016 control.actuallyEmbed(); 1017 1017 } … … 1434 1434 */ 1435 1435 focus: function() { 1436 this.expandControlSection(); 1437 this.expandForm(); 1438 this.container.find( '.menu-item-settings :focusable:first' ).focus(); 1436 var control = this, focusable; 1437 control.expandControlSection(); 1438 control.expandForm(); 1439 // Note that we can't use :focusable due to a jQuery UI issue. See: https://github.com/jquery/jquery-ui/pull/1583 1440 focusable = control.container.find( '.menu-item-settings' ).find( 'input, select, textarea, button, object, a[href], [tabindex]' ).filter( ':visible' ); 1441 focusable.first().focus(); 1439 1442 }, 1440 1443
Note: See TracChangeset
for help on using the changeset viewer.