Media: Improve unselecting media in the media bulk selection mode.

Disables the "Delete Selected" button when unselecting media by clicking the
"checkmark" box in the media bulk selection mode.

Props subrataemfluence, adamsilverstein.
Fixes #42239.


git-svn-id: https://develop.svn.wordpress.org/trunk@44640 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia 2019-01-17 12:07:32 +00:00
parent 6b489bb125
commit a0978e8222
1 changed files with 3 additions and 0 deletions

View File

@ -509,6 +509,9 @@ Attachment = View.extend(/** @lends wp.media.view.Attachment.prototype */{
} else {
selection.add( this.model );
}
// Trigger an action button update.
this.controller.trigger( 'selection:toggle' );
}
});