diff --git a/themes/bootstrap3/js/common.js b/themes/bootstrap3/js/common.js index 4b7abe9dfffdf4b7a4fb37f0058763eaf8005b96..7b10162c532c047017dec0da102f6da48f2291f9 100644 --- a/themes/bootstrap3/js/common.js +++ b/themes/bootstrap3/js/common.js @@ -149,12 +149,12 @@ function registerLightboxEvents() { }); } function bulkActionLightboxHandler($form, refreshOnDelete) { + var submit = $form.find('input[type="submit"][clicked=true]').attr('name'); var checks = $form.find('input.checkbox-select-item:checked'); - if(checks.length == 0) { + if(submit != 'empty' && checks.length == 0) { Lightbox.displayError(vufindString['bulk_noitems_advice']); return; } - var submit = $form.find('input[type="submit"][clicked=true]').attr('name'); if (submit == 'print') { //redirect page var checks = $form.find('input.checkbox-select-item:checked');