Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an option to wp.media.view.AttachmentsBrowser `bulkEdit`, which defaults to false. When set to true, conditionally create a SelectionBulkEdit view when multiple items are selected. Multiple delete now possible.
- Loading branch information
1 parent
cb64848
commit dda70ad
Showing
4 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<script type="text/html" id="tmpl-media-selection-bulk-edit"> | ||
<div class="selection-info"> | ||
<span class="count"></span> | ||
<# if ( data.clearable ) { #> | ||
<a class="clear-selection" href="#"><?php _e('Clear'); ?></a> | ||
<# } #> | ||
<a class="delete-selection" href="#"><?php _e('Delete'); ?></a> | ||
</div> | ||
<div class="selection-view"></div> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters