Make WordPress Core

Changeset 36304


Ignore:
Timestamp:
01/14/2016 11:02:05 PM (9 years ago)
Author:
afercia
Message:

Accessibility: Improve focus handling on the Taxonomies Quick Edit.

Moves focus back to a proper place when saving or closing the form.

Fixes #35460.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/inline-edit-tax.js

    r36260 r36304  
    122122
    123123                        row.hide().fadeIn( 400, function() {
    124                             // Move focus back to the taxonomy title.
    125                             row.find( '.row-title' ).focus();
     124                            // Move focus back to the Quick Edit link.
     125                            row.find( '.editinline' ).focus();
    126126                            wp.a11y.speak( inlineEditL10n.saved );
    127127                        });
     
    149149            $('#'+id).siblings('tr.hidden').addBack().remove();
    150150            id = id.substr( id.lastIndexOf('-') + 1 );
    151             // Show the taxonomy listing and move focus back to the taxonomy title.
    152             $( this.what + id ).show().find( '.row-title' ).focus();
     151            // Show the taxonomy row and move focus back to the Quick Edit link.
     152            $( this.what + id ).show().find( '.editinline' ).focus();
    153153        }
    154154    },
Note: See TracChangeset for help on using the changeset viewer.