From f78df13277416d29698cf3afcbe3a0b02e929f16 Mon Sep 17 00:00:00 2001 From: Aaron Jorbin Date: Mon, 6 Apr 2015 01:20:23 +0000 Subject: [PATCH] Remove Shiny Bulk Updates Bulk updates don't need to be ajaxified so let's revert. See #31770, #29820, git-svn-id: https://develop.svn.wordpress.org/trunk@32053 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/js/updates.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/wp-admin/js/updates.js b/src/wp-admin/js/updates.js index ca4e597828..242ec6de8c 100644 --- a/src/wp-admin/js/updates.js +++ b/src/wp-admin/js/updates.js @@ -459,24 +459,6 @@ window.wp = window.wp || {}; wp.updates.updatePlugin( updateRow.data( 'plugin' ), updateRow.data( 'slug' ) ); } ); - $( '#bulk-action-form' ).on( 'submit', function( e ) { - var $checkbox, plugin, slug; - - if ( $( '#bulk-action-selector-top' ).val() == 'update-selected' ) { - e.preventDefault(); - - $( 'input[name="checked[]"]:checked' ).each( function( index, elem ) { - $checkbox = $( elem ); - plugin = $checkbox.val(); - slug = $checkbox.parents( 'tr' ).prop( 'id' ); - - wp.updates.updatePlugin( plugin, slug ); - - $checkbox.attr( 'checked', false ); - } ); - } - } ); - $( '.plugin-card' ).on( 'click', '.update-now', function( e ) { e.preventDefault(); var $button = $( e.target );