Changeset 38175
- Timestamp:
- 07/31/2016 06:56:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/updates.js
r38168 r38175 370 370 .text( wp.updates.l10n.updating ); 371 371 372 $document.trigger( 'wp-plugin-updating' );372 $document.trigger( 'wp-plugin-updating', args ); 373 373 374 374 return wp.updates.ajax( 'update-plugin', args ); … … 526 526 $card.removeClass( 'plugin-card-install-failed' ).find( '.notice.notice-error' ).remove(); 527 527 528 $document.trigger( 'wp-plugin-installing', args ); 529 528 530 return wp.updates.ajax( 'install-plugin', args ); 529 531 }; … … 716 718 wp.a11y.speak( wp.updates.l10n.deleting, 'polite' ); 717 719 720 $document.trigger( 'wp-plugin-deleting', args ); 721 718 722 return wp.updates.ajax( 'delete-plugin', args ); 719 723 }; … … 906 910 $notice.text( wp.updates.l10n.updating ); 907 911 908 $document.trigger( 'wp-theme-updating' );912 $document.trigger( 'wp-theme-updating', args ); 909 913 910 914 return wp.updates.ajax( 'update-theme', args ); … … 1039 1043 $( '.install-theme-info, [data-slug="' + args.slug + '"]' ).removeClass( 'theme-install-failed' ).find( '.notice.notice-error' ).remove(); 1040 1044 1045 $document.trigger( 'wp-theme-installing', args ); 1046 1041 1047 return wp.updates.ajax( 'install-theme', args ); 1042 1048 }; … … 1168 1174 $( '.theme-info .update-message' ).remove(); 1169 1175 1176 $document.trigger( 'wp-theme-deleting', args ); 1177 1170 1178 return wp.updates.ajax( 'delete-theme', args ); 1171 1179 }; … … 1974 1982 $bulkActionForm.find( '.manage-column [type="checkbox"]' ).prop( 'checked', false ); 1975 1983 1984 $document.trigger( 'wp-' + type + '-bulk-' + bulkAction, itemsSelected ); 1985 1976 1986 // Find all the checkboxes which have been checked. 1977 1987 itemsSelected.each( function( index, element ) {
Note: See TracChangeset
for help on using the changeset viewer.