Remove Shiny Bulk Updates
Bulk updates don't need to be ajaxified so let's revert. See #31770, #29820, Built from https://develop.svn.wordpress.org/trunk@32053 git-svn-id: http://core.svn.wordpress.org/trunk@32032 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2c42b8f0b2
commit
dd5b92a2fe
|
@ -459,24 +459,6 @@ window.wp = window.wp || {};
|
||||||
wp.updates.updatePlugin( updateRow.data( 'plugin' ), updateRow.data( 'slug' ) );
|
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 ) {
|
$( '.plugin-card' ).on( 'click', '.update-now', function( e ) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var $button = $( e.target );
|
var $button = $( e.target );
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-beta4-32052';
|
$wp_version = '4.2-beta4-32053';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue