From 51fcffbd91bb8285a75dd5d929d3399d0c97e522 Mon Sep 17 00:00:00 2001 From: Felix Blechschmitt Date: Mon, 9 Jan 2017 22:34:31 +0100 Subject: [PATCH] Delete multiple reports at once - fixes #3 It was not possible to delete multiple reports or applications because there was an invalid check for the length of the selected rows. --- assets/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/app.js b/assets/js/app.js index 9f71870..5677039 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -132,7 +132,7 @@ }); switch (action) { case 'delete:application': - if (selected.length == 1) { + if (selected.length >= 1) { bootbox.confirm('Deleting selected applications will also delete associated crash reports. Continue?', function (result) { if (result) { $.post($el.data('url'), { @@ -150,7 +150,7 @@ } break; case 'delete:report': - if (selected.length == 1) { + if (selected.length >= 1) { bootbox.confirm('Are you sure you wish to delete selected crash reports? This cannot be undone.', function (result) { if (result) { $.post($el.data('url'), {