In `views/button/select-mode-toggle`, don't hide the spinner with JS. This oversight is a symptom of the too-aggressive outside DOM handling that is happening in this view's `toggleBulkEditHandler` method.
Props afercia. Fixes #32324. Built from https://develop.svn.wordpress.org/trunk@32502 git-svn-id: http://core.svn.wordpress.org/trunk@32472 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1c40b495a1
commit
2f82bbb60d
|
@ -311,7 +311,7 @@ SelectModeToggle = Button.extend({
|
||||||
// TODO: the Frame should be doing all of this.
|
// TODO: the Frame should be doing all of this.
|
||||||
if ( this.controller.isModeActive( 'select' ) ) {
|
if ( this.controller.isModeActive( 'select' ) ) {
|
||||||
this.model.set( 'text', l10n.cancelSelection );
|
this.model.set( 'text', l10n.cancelSelection );
|
||||||
children.not( '.media-button' ).hide();
|
children.not( '.spinner, .media-button' ).hide();
|
||||||
this.$el.show();
|
this.$el.show();
|
||||||
toolbar.$( '.delete-selected-button' ).removeClass( 'hidden' );
|
toolbar.$( '.delete-selected-button' ).removeClass( 'hidden' );
|
||||||
} else {
|
} else {
|
||||||
|
@ -319,7 +319,7 @@ SelectModeToggle = Button.extend({
|
||||||
this.controller.content.get().$el.removeClass( 'fixed' );
|
this.controller.content.get().$el.removeClass( 'fixed' );
|
||||||
toolbar.$el.css( 'width', '' );
|
toolbar.$el.css( 'width', '' );
|
||||||
toolbar.$( '.delete-selected-button' ).addClass( 'hidden' );
|
toolbar.$( '.delete-selected-button' ).addClass( 'hidden' );
|
||||||
children.not( '.spinner, .media-button' ).show();
|
children.not( '.media-button' ).show();
|
||||||
this.controller.state().get( 'selection' ).reset();
|
this.controller.state().get( 'selection' ).reset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
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.3-alpha-32501';
|
$wp_version = '4.3-alpha-32502';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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