Bugzilla – Attachment 152143 Details for
Bug 33581
Error in web installer concerning sample holidays and patrons requiring sample libraries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33581: Add sample patrons to patch and some hints
Bug-33581-Add-sample-patrons-to-patch-and-some-hin.patch (text/plain), 2.15 KB, created by
Katrin Fischer
on 2023-06-08 10:22:13 UTC
(
hide
)
Description:
Bug 33581: Add sample patrons to patch and some hints
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-06-08 10:22:13 UTC
Size:
2.15 KB
patch
obsolete
>From 3f530b48052a7efb3dd90b2d9f6f3bf05d273f8e Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Thu, 8 Jun 2023 10:20:02 +0000 >Subject: [PATCH] Bug 33581: Add sample patrons to patch and some hints > >* Adds sample patrons to the new dependency checking JS >* Adds a red "requires sample libraries" note to sample patrons > and sample holidays, to make things more clear to users. > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/installer/step3.tt | 10 ++++++---- > 1 file changed, 6 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt >index ffd3d36672..dee0990e86 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt >@@ -463,14 +463,16 @@ > $( container ).find("input").prop("checked", state); > $( container ).find(".selectall,.deselectall").toggle(); > }); >- function update_sample_libraries_holidays(){ >+ let required_text = _("(requires sample libraries)"); >+ $("#sample_libraries_holidays, #sample_patrons").parent().after(" <i style='color:red'>"+required_text+"</i>"); >+ function update_sample_libraries_dependencies(){ > let checked = $("#sample_libraries").prop("checked"); >- $("#sample_libraries_holidays").prop("disabled", !checked); >+ $("#sample_libraries_holidays, #sample_patrons").prop("disabled", !checked); > if (!checked) { >- $("#sample_libraries_holidays").prop("checked", false); >+ $("#sample_libraries_holidays, #sample_patrons").prop("checked", false); > } > }; >- $("#sample_libraries").on("change", update_sample_libraries_holidays); >+ $("#sample_libraries").on("change", update_sample_libraries_dependencies); > $("#sample_libraries").change(); > }); > </script> >-- >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 33581
:
152083
|
152142
|
152143
|
152188
|
152189
|
153307
|
153308