Bugzilla – Attachment 142836 Details for
Bug 24606
Allow storing item values as a template for creating new items
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24606: (QA follow-up) Hide button when using multi-add
Bug-24606-QA-follow-up-Hide-button-when-using-mult.patch (text/plain), 1.75 KB, created by
Kyle M Hall (khall)
on 2022-10-31 16:05:40 UTC
(
hide
)
Description:
Bug 24606: (QA follow-up) Hide button when using multi-add
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2022-10-31 16:05:40 UTC
Size:
1.75 KB
patch
obsolete
>From 6f2fc443699f95530d8f5f9e57991ef2da5049a9 Mon Sep 17 00:00:00 2001 >From: Kyle Hall <kyle@bywatersolutions.com> >Date: Mon, 31 Oct 2022 12:05:02 -0400 >Subject: [PATCH] Bug 24606: (QA follow-up) Hide button when using multi-add > >--- > 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; >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24606
:
141613
|
141614
|
141615
|
141616
|
141617
|
141717
|
141718
|
141719
|
141720
|
141721
|
141972
|
142003
|
142004
|
142005
|
142006
|
142007
|
142008
|
142833
|
142834
|
142835
|
142836
|
142837
|
142877
|
142878
|
142879
|
142880
|
142881
|
142882
|
142883
|
142884
|
142885
|
142886
|
142887
|
142888
|
143020
|
143569
|
143570
|
143571
|
143572
|
143573
|
143574
|
143575
|
143576
|
143577
|
143578
|
143579
|
143580
|
143581
|
143794
|
143795
|
143796
|
143989
|
143990
|
144161