diff --git a/classes/class.attachments.php b/classes/class.attachments.php index 2aff952..16eb281 100644 --- a/classes/class.attachments.php +++ b/classes/class.attachments.php @@ -736,6 +736,7 @@ function meta_box_markup( $post, $metabox ) { append == true ) : ?>
button_text ), 'attachments' ); ?> +
@@ -975,6 +976,31 @@ function(){ } ); + $element.on('click', '.attachments-batch-remove', function removeSelectedAttachments(event){ + + if(confirm('')){ + + var $btn = $(this), + $attachmentsToRemove = $('.select-attachment:checked', $element).parents('.attachments-attachment'); + + $btn.hide(); + $attachmentsToRemove.find('.attachment-meta').fadeOut(125); + $attachmentsToRemove.css('min-height',0).animate( + { + padding: 0, + margin: 0, + height: 0 + }, + 600, + function(){ + $attachmentsToRemove.remove(); + } + ); + + } + }); + + }); "> uid ) ) ? $attachment->uid : '{{ attachments.attachment_uid }}'; ?> + +