Ticket #40966: 40966.diff
File 40966.diff, 1.2 KB (added by , 8 years ago) |
---|
-
src/wp-admin/js/updates.js
2053 2053 wp.updates.maybeRequestFilesystemCredentials( event ); 2054 2054 2055 2055 event.preventDefault(); 2056 2057 // Disable the Apply button while working 2058 $(this).prop( 'disabled', true ); 2056 2059 2057 2060 // Un-check the bulk checkboxes. 2058 2061 $bulkActionForm.find( '.manage-column [type="checkbox"]' ).prop( 'checked', false ); … … 2084 2087 2085 2088 // Display bulk notification for updates of any kind. 2086 2089 $document.on( 'wp-plugin-update-success wp-plugin-update-error wp-theme-update-success wp-theme-update-error', function( event, response ) { 2090 2087 2091 var $itemRow = $( '[data-slug="' + response.slug + '"]' ), 2088 2092 $bulkActionNotice, itemName; 2089 2093 … … 2121 2125 if ( error > 0 && ! wp.updates.queue.length ) { 2122 2126 $( 'html, body' ).animate( { scrollTop: 0 } ); 2123 2127 } 2128 2129 // Re-enable the Apply button after displaying update notifications 2130 $bulkActionForm.find( 'input[type="submit"]' ).prop( 'disabled', false ); 2124 2131 } ); 2125 2132 2126 2133 // Reset admin notice template after #bulk-action-notice was added.