From 3f530b48052a7efb3dd90b2d9f6f3bf05d273f8e Mon Sep 17 00:00:00 2001 From: Katrin Fischer 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 --- .../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(" "+required_text+""); + 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(); }); -- 2.30.2