From 02dd7722903eecb8ea1192c0a17649e23abb40c5 Mon Sep 17 00:00:00 2001 From: Kyle Hall Date: Mon, 31 Oct 2022 12:05:02 -0400 Subject: [PATCH] Bug 24606: (QA follow-up) Hide button when using multi-add Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js index 0bb7251d16..5d483f0030 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js +++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js @@ -54,10 +54,14 @@ $(document).ready(function(){ var multiCopyControl = $("#add_multiple_copies_span"); var addMultipleBlock = $("#addmultiple"); var addSingleBlock = $("#addsingle"); + var saveAsTemplateControl = $("#save_as_template_span"); + var saveTemplateBlock = $("#savetemplate"); + multiCopyControl.hide(); $("#add_multiple_copies").on("click",function(e){ e.preventDefault; addMultipleBlock.toggle(); + saveTemplateBlock.toggle(); addSingleBlock.toggle(); multiCopyControl.toggle(); $('body,html').animate({ scrollTop: $('body').height() }, 100); @@ -65,12 +69,11 @@ $(document).ready(function(){ $("#cancel_add_multiple").on("click",function(e){ e.preventDefault(); addMultipleBlock.toggle(); + saveTemplateBlock.toggle(); addSingleBlock.toggle(); multiCopyControl.toggle(); }); - var saveAsTemplateControl = $("#save_as_template_span"); - var saveTemplateBlock = $("#savetemplate"); saveAsTemplateControl.hide(); $("#save_as_template").on("click",function(e){ e.preventDefault;