Make WordPress Core

Changeset 31969


Ignore:
Timestamp:
04/01/2015 09:30:50 PM (10 years ago)
Author:
jorbin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/updates.js

    r31949 r31969  
    208208            var newText = $pluginRow.find('.plugin-version-author-uri').html().replace( response.oldVersion, response.newVersion );
    209209            $pluginRow.find('.plugin-version-author-uri').html( newText );
     210
     211            // Add updated class to update message parent tr
     212            $pluginRow.next().addClass( 'updated' );
    210213        } else if ( 'plugin-install' === pagenow ) {
    211214            $updateMessage = $( '.plugin-card-' + response.slug ).find( '.update-now' );
     
    228231        wp.updates.queueChecker();
    229232    };
     233
    230234
    231235    /**
Note: See TracChangeset for help on using the changeset viewer.