Fix colors for activated and updated plugins
If we don't have the updated class on the TR for he update message, then the message is red and red is scary and they just updated, they should be happy and celebrating, not scared. See #31608 git-svn-id: https://develop.svn.wordpress.org/trunk@31969 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
365ed7a6cb
commit
5b676b4f8e
|
@ -207,6 +207,9 @@ window.wp = window.wp || {};
|
|||
// Update the version number in the row.
|
||||
var newText = $pluginRow.find('.plugin-version-author-uri').html().replace( response.oldVersion, response.newVersion );
|
||||
$pluginRow.find('.plugin-version-author-uri').html( newText );
|
||||
|
||||
// Add updated class to update message parent tr
|
||||
$pluginRow.next().addClass( 'updated' );
|
||||
} else if ( 'plugin-install' === pagenow ) {
|
||||
$updateMessage = $( '.plugin-card-' + response.slug ).find( '.update-now' );
|
||||
$updateMessage.addClass( 'button-disabled' );
|
||||
|
@ -228,6 +231,7 @@ window.wp = window.wp || {};
|
|||
wp.updates.queueChecker();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* On a plugin update error, update the UI appropriately.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue