From c607c3221eaa19ad7a072bcc81a58fe6ba06dd93 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Fri, 14 Oct 2016 07:56:03 +0000 Subject: [PATCH] Bug 15565: Alert librarian that maximum holds per record is reached MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dani Elder Signed-off-by: Danielle Elder Signed-off-by: Séverine QUEUNE Signed-off-by: Séverine QUEUNE Signed-off-by: Kyle M Hall Signed-off-by: Benjamin Rokseth --- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index ab05306..9e26b2f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -14,7 +14,6 @@ [% END %] [% INCLUDE 'doc-head-close.inc' %] [% Asset.css("css/datatables.css") | $raw %] - @@ -859,10 +858,10 @@ numchecked = 0; $("input[name=checkitem]").each(function() { if(this.checked){ - numchecked = 1; + numchecked++; } }); - if(numchecked == 1){ + if(numchecked > 0){ $("#requestany").prop("checked", false); } else { $("#requestany").prop("checked",true); -- 2.1.4