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:
parent
7573d3caf1
commit
02dd772290
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue