@@ -, +, @@ --- .../prog/en/includes/messaging-preference-form.inc | 28 ++++++++-------- .../prog/en/modules/reserve/request.tt | 38 +++++++++++----------- 2 files changed, 33 insertions(+), 33 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc @@ -1,20 +1,20 @@ [% USE Koha %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -149,26 +149,26 @@ function checkMultiHold() { $("input.warning").click(function() { return confirm( _("None of these items can normally be put on hold for this patron.") + "\n\n" + _("Place hold?") ); }); - $("#requestany").click(function() { - if(this.checked){ - $("input[name=checkitem]").each(function() { - $(this).prop("checked", false); - }); - } - }); - $("input[name=checkitem]").click(function() { - onechecked = 0; - $("input[name=checkitem]").each(function() { - if(this.checked){ - onechecked = 1; - } - }); - if(onechecked == 1){ + $("#requestany").click(function() { + if(this.checked){ + $("input[name=checkitem]").each(function() { + $(this).prop("checked", false); + }); + } + }); + $("input[name=checkitem]").click(function() { + onechecked = 0; + $("input[name=checkitem]").each(function() { + if(this.checked){ + onechecked = 1; + } + }); + if(onechecked == 1){ $("#requestany").prop("checked", false); - } else { - $("#requestany").prop("checked",true); - } - }); + } else { + $("#requestany").prop("checked",true); + } + }); $(".clear-date").on("click",function(e){ e.preventDefault(); --