diff --git a/src/js/_enqueues/wp/updates.js b/src/js/_enqueues/wp/updates.js
index e7454c0eab..c3cb60b4c5 100644
a
|
b
|
|
445 | 445 | wp.updates.updatePlugin = function( args ) { |
446 | 446 | var $updateRow, $card, $message, message; |
447 | 447 | |
| 448 | var $adminBarUpdates = $( '#wp-admin-bar-updates' ); |
| 449 | |
448 | 450 | args = _.extend( { |
449 | 451 | success: wp.updates.updatePluginSuccess, |
450 | 452 | error: wp.updates.updatePluginError |
… |
… |
|
475 | 477 | $message.data( 'originaltext', $message.html() ); |
476 | 478 | } |
477 | 479 | |
| 480 | $adminBarUpdates.addClass( 'updating-message' ); |
| 481 | |
478 | 482 | $message |
479 | 483 | .attr( 'aria-label', message ) |
480 | 484 | .text( __( 'Updating...' ) ); |
… |
… |
|
501 | 505 | wp.updates.updatePluginSuccess = function( response ) { |
502 | 506 | var $pluginRow, $updateMessage, newText; |
503 | 507 | |
| 508 | var $adminBarUpdates = $( '#wp-admin-bar-updates' ); |
| 509 | |
504 | 510 | if ( 'plugins' === pagenow || 'plugins-network' === pagenow ) { |
505 | 511 | $pluginRow = $( 'tr[data-plugin="' + response.plugin + '"]' ) |
506 | 512 | .removeClass( 'update' ) |
… |
… |
|
513 | 519 | newText = $pluginRow.find( '.plugin-version-author-uri' ).html().replace( response.oldVersion, response.newVersion ); |
514 | 520 | $pluginRow.find( '.plugin-version-author-uri' ).html( newText ); |
515 | 521 | |
| 522 | $adminBarUpdates.removeClass( 'updating-message' ); |
| 523 | |
516 | 524 | // Clear the "time to next auto-update" text. |
517 | 525 | $pluginRow.find( '.auto-update-time' ).empty(); |
518 | 526 | } else if ( 'plugin-install' === pagenow || 'plugin-install-network' === pagenow ) { |
… |
… |
|
555 | 563 | wp.updates.updatePluginError = function( response ) { |
556 | 564 | var $card, $message, errorMessage; |
557 | 565 | |
| 566 | var $adminBarUpdates = $( '#wp-admin-bar-updates' ); |
| 567 | |
558 | 568 | if ( ! wp.updates.isValidResponse( response, 'update' ) ) { |
559 | 569 | return; |
560 | 570 | } |
… |
… |
|
577 | 587 | } |
578 | 588 | $message.removeClass( 'updating-message notice-warning' ).addClass( 'notice-error' ).find( 'p' ).html( errorMessage ); |
579 | 589 | |
| 590 | $adminBarUpdates.removeClass( 'updating-message' ); |
| 591 | |
580 | 592 | if ( response.pluginName ) { |
581 | 593 | $message.find( 'p' ) |
582 | 594 | .attr( |
diff --git a/src/wp-includes/css/admin-bar.css b/src/wp-includes/css/admin-bar.css
index f3e16d95d7..aed5898c5e 100644
a
|
b
|
html:lang(he-il) .rtl #wpadminbar * { |
588 | 588 | top: 2px; |
589 | 589 | } |
590 | 590 | |
| 591 | #wpadminbar #wp-admin-bar-updates.updating-message .ab-icon:before { |
| 592 | display: inline-block; |
| 593 | animation: rotation 2s infinite linear; |
| 594 | } |
| 595 | |
591 | 596 | /** |
592 | 597 | * Search |
593 | 598 | */ |