From 57f66d5132fe059c76740b5e2e743d3082d25303 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 13 Sep 2016 09:06:12 +0100 Subject: [PATCH] Bug 16949: Simplify the checkbox checked condition It's easier to use jQuery selector to know if checkboxes are checked. Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../en/modules/tools/batch_delete_records.tt | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt index ceb5bd4186..7962a9fe12 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_delete_records.tt @@ -61,21 +61,9 @@ $(document).ready(function() { "bPaginate": false })); - function Checkbox(){ - var form = document.getElementById('selectrecords'); - var inputs = form.getElementsByTagName('input'); - var checked = false; - for (var i=0; i