Make WordPress Core

Ticket #40966: 40966.diff

File 40966.diff, 1.2 KB (added by MarcGuay, 8 years ago)
  • src/wp-admin/js/updates.js

     
    20532053                        wp.updates.maybeRequestFilesystemCredentials( event );
    20542054
    20552055                        event.preventDefault();
     2056                       
     2057                        // Disable the Apply button while working
     2058                        $(this).prop( 'disabled', true );
    20562059
    20572060                        // Un-check the bulk checkboxes.
    20582061                        $bulkActionForm.find( '.manage-column [type="checkbox"]' ).prop( 'checked', false );
     
    20842087
    20852088                        // Display bulk notification for updates of any kind.
    20862089                        $document.on( 'wp-plugin-update-success wp-plugin-update-error wp-theme-update-success wp-theme-update-error', function( event, response ) {
     2090                               
    20872091                                var $itemRow = $( '[data-slug="' + response.slug + '"]' ),
    20882092                                        $bulkActionNotice, itemName;
    20892093
     
    21212125                                if ( error > 0 && ! wp.updates.queue.length ) {
    21222126                                        $( 'html, body' ).animate( { scrollTop: 0 } );
    21232127                                }
     2128                               
     2129                                // Re-enable the Apply button after displaying update notifications
     2130                                $bulkActionForm.find( 'input[type="submit"]' ).prop( 'disabled', false );
    21242131                        } );
    21252132
    21262133                        // Reset admin notice template after #bulk-action-notice was added.