Bugzilla – Attachment 142837 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) Disable 'Apply template' button if no template is selected
Bug-24606-QA-follow-up-Disable-Apply-template-butt.patch (text/plain), 1.43 KB, created by
Kyle M Hall (khall)
on 2022-10-31 16:17:34 UTC
(
hide
)
Description:
Bug 24606: (QA follow-up) Disable 'Apply template' button if no template is selected
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2022-10-31 16:17:34 UTC
Size:
1.43 KB
patch
obsolete
>From 09b4b27fe9de3c6a1469cdef2c1bb2e441b27a73 Mon Sep 17 00:00:00 2001 >From: Kyle Hall <kyle@bywatersolutions.com> >Date: Mon, 31 Oct 2022 12:16:27 -0400 >Subject: [PATCH] Bug 24606: (QA follow-up) Disable 'Apply template' button if > no template is selected > >--- > koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js >index 5d483f0030..ba2a40ef5f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js >@@ -88,11 +88,19 @@ $(document).ready(function(){ > }); > > $("#template_id").on("change", function() { >- if ( $(this).find(":selected").data("editor") ) { >+ let option = $(this).find(":selected"); >+ >+ if ( option.data("editor") ) { > $("#delete_template_submit").removeAttr("disabled"); > } else { > $("#delete_template_submit").attr("disabled", "disabled"); > } >+ >+ if ( option.val() != 0 ) { >+ $("#load_template_submit").removeAttr("disabled"); >+ } else { >+ $("#load_template_submit").attr("disabled", "disabled"); >+ } > }); > $("#template_id").change(); // Trigger to enable delete button if patron's template is in use > $("#replace_template_id").on("change", function() { >-- >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