Changeset 42727
- Timestamp:
- 02/21/2018 11:03:57 PM (7 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-terms-list-table.php
r42565 r42727 456 456 ); 457 457 $actions['inline hide-if-no-js'] = sprintf( 458 '< a href="#" class="editinline aria-button-if-js" aria-label="%s">%s</a>',458 '<button type="button" class="button-link editinline" aria-label="%s" aria-expanded="false">%s</button>', 459 459 /* translators: %s: taxonomy term name */ 460 460 esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $tag->name ) ), -
trunk/src/wp-admin/js/inline-edit-tax.js
r42411 r42727 37 37 t.what = '#'+t.type+'-'; 38 38 39 $( '#the-list').on('click', 'a.editinline', function(){40 inlineEditTax.edit(this);41 return false;39 $( '#the-list' ).on( 'click', '.editinline', function() { 40 $( this ).attr( 'aria-expanded', 'true' ); 41 inlineEditTax.edit( this ); 42 42 }); 43 43 … … 220 220 221 221 row.hide().fadeIn( 400, function() { 222 // Move focus back to the Quick Edit link. 223 row.find( '.editinline' ).focus(); 222 // Move focus back to the Quick Edit button. 223 row.find( '.editinline' ) 224 .attr( 'aria-expanded', 'false' ) 225 .focus(); 224 226 wp.a11y.speak( inlineEditL10n.saved ); 225 227 }); … … 263 265 id = id.substr( id.lastIndexOf('-') + 1 ); 264 266 265 // Show the taxonomy row and move focus back to the Quick Edit link. 266 $( this.what + id ).show().find( '.editinline' ).focus(); 267 // Show the taxonomy row and move focus back to the Quick Edit button. 268 $( this.what + id ).show().find( '.editinline' ) 269 .attr( 'aria-expanded', 'false' ) 270 .focus(); 267 271 } 268 272 },
Note: See TracChangeset
for help on using the changeset viewer.