- if ( 'plugins' === pagenow || 'plugins-network' === pagenow ) {
- // Return the user to the input box of the plugin's table row after closing the modal.
- $( '#' + message.slug ).find( '.check-column input' ).focus();
- // 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( '.column-name a' ).focus();
- $( '.plugin-card-' + message.slug ).find( '[data-slug="' + message.slug + '"]' ).trigger( 'click' );
- }