From 37acf46b7e82e9e30d2926d7e7f6953c804a88ff Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Mon, 2 May 2022 11:03:00 -1000 Subject: [PATCH] Bug 30108: (follow-up) Make require label translatable Signed-off-by: Fridolin Somers --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt index 99e282cffb..6637cfab6f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt @@ -516,14 +516,15 @@ $(".toggle-hold-options").show(); $(".hold-options").hide(); var OPACMandatoryHoldDates = "[% Koha.Preference('OPACMandatoryHoldDates') | html %]"; + var requiredDiv = "
" + _("Required") + "
"; if( OPACMandatoryHoldDates ) { if( OPACMandatoryHoldDates == "start" || OPACMandatoryHoldDates == "both" ) { $(".holddatefrom").prop( 'required', true ); - $(".holddatefrom").parent().append('
Required
'); + $(".holddatefrom").parent().append(requiredDiv); } if( OPACMandatoryHoldDates == "end" || OPACMandatoryHoldDates == "both" ) { $(".futuredate").prop( 'required', true ); - $(".futuredate").parent().append('
Required
'); + $(".futuredate").parent().append(requiredDiv); } } $(".holddatefrom,.futuredate").prop("readOnly", true); -- 2.39.5