Changeset 32053
- Timestamp:
- 04/06/2015 01:20:23 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/updates.js
r32052 r32053 460 460 } ); 461 461 462 $( '#bulk-action-form' ).on( 'submit', function( e ) {463 var $checkbox, plugin, slug;464 465 if ( $( '#bulk-action-selector-top' ).val() == 'update-selected' ) {466 e.preventDefault();467 468 $( 'input[name="checked[]"]:checked' ).each( function( index, elem ) {469 $checkbox = $( elem );470 plugin = $checkbox.val();471 slug = $checkbox.parents( 'tr' ).prop( 'id' );472 473 wp.updates.updatePlugin( plugin, slug );474 475 $checkbox.attr( 'checked', false );476 } );477 }478 } );479 480 462 $( '.plugin-card' ).on( 'click', '.update-now', function( e ) { 481 463 e.preventDefault();
Note: See TracChangeset
for help on using the changeset viewer.