From fd1da1dc3ea7de2aa56e08b1dda286c155b4dc64 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 --- .../prog/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 ceb5bd4..7962a9f 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