Bug 24606: (QA follow-up) Hide button when using multi-add

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle Hall 2022-10-31 12:05:02 -04:00 committed by Tomas Cohen Arazi
parent 7573d3caf1
commit 02dd772290
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -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;