From 27103b4564071a79f21fdebcf3816b4068129a9e Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Tue, 21 Oct 2014 12:29:05 -0400 Subject: [PATCH] Cart fix: no longer checks for items when emptying. --- themes/bootstrap3/js/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/bootstrap3/js/common.js b/themes/bootstrap3/js/common.js index 4b7abe9dfff..7b10162c532 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'); -- GitLab