View | Details | Raw Unified | Return to bug 33581
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss (+5 lines)
Lines 242-244 span.breadcrumbs { Link Here
242
.complete {
242
.complete {
243
    color: green;
243
    color: green;
244
}
244
}
245
246
.hint {
247
    color: #727272;
248
    font-size: 90%;
249
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt (-5 / +6 lines)
Lines 463-476 Link Here
463
                    $( container ).find("input").prop("checked", state);
463
                    $( container ).find("input").prop("checked", state);
464
                    $( container ).find(".selectall,.deselectall").toggle();
464
                    $( container ).find(".selectall,.deselectall").toggle();
465
                });
465
                });
466
                function update_sample_libraries_holidays(){
466
                let required_text = _("(requires sample libraries)");
467
                $("#sample_libraries_holidays, #sample_patrons").parent().after(" <span class='hint'>"+required_text+"</span>");
468
                function update_sample_libraries_dependencies(){
467
                    let checked = $("#sample_libraries").prop("checked");
469
                    let checked = $("#sample_libraries").prop("checked");
468
                    $("#sample_libraries_holidays").prop("disabled", !checked);
470
                    $("#sample_libraries_holidays, #sample_patrons").prop("disabled", !checked);
469
                    if (!checked) {
471
                    if (!checked) {
470
                        $("#sample_libraries_holidays").prop("checked", false);
472
                        $("#sample_libraries_holidays, #sample_patrons").prop("checked", false);
471
                    }
473
                    }
472
                };
474
                };
473
                $("#sample_libraries").on("change", update_sample_libraries_holidays);
475
                $("#sample_libraries").on("change", update_sample_libraries_dependencies);
474
                $("#sample_libraries").change();
476
                $("#sample_libraries").change();
475
            });
477
            });
476
        </script>
478
        </script>
477
- 

Return to bug 33581