Accessibility: update a jQuery selector used for the Plugin Cards after [35009].
When updating a plugin from its details modal dialog, focus should be moved back to the plugin title which now is a H3 heading. Fixes #33818. git-svn-id: https://develop.svn.wordpress.org/trunk@35155 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6c674cfe20
commit
83fd029f6d
@ -552,7 +552,7 @@ window.wp = window.wp || {};
|
||||
// trigger the update
|
||||
$( '.plugin-update-tr[data-slug="' + message.slug + '"]' ).find( '.update-link' ).trigger( 'click' );
|
||||
} else if ( 'plugin-install' === pagenow ) {
|
||||
$( '.plugin-card-' + message.slug ).find( 'h4 a' ).focus();
|
||||
$( '.plugin-card-' + message.slug ).find( '.column-name a' ).focus();
|
||||
$( '.plugin-card-' + message.slug ).find( '[data-slug="' + message.slug + '"]' ).trigger( 'click' );
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user