Bugzilla – Attachment 134476 Details for
Bug 30108
Allow making hold dates required
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30108: (follow-up) Make require label translatable
Bug-30108-follow-up-Make-require-label-translatabl.patch (text/plain), 1.70 KB, created by
Fridolin Somers
on 2022-05-02 21:06:11 UTC
(
hide
)
Description:
Bug 30108: (follow-up) Make require label translatable
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2022-05-02 21:06:11 UTC
Size:
1.70 KB
patch
obsolete
>From 81e9d39d02a0c167bca757b4e84e229e7b1a5242 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Mon, 2 May 2022 11:03:00 -1000 >Subject: [PATCH] Bug 30108: (follow-up) Make require label translatable > >--- > 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 = "<div class=\"required_label required\">" + _("Required") + "</div>"; > if( OPACMandatoryHoldDates ) { > if( OPACMandatoryHoldDates == "start" || OPACMandatoryHoldDates == "both" ) { > $(".holddatefrom").prop( 'required', true ); >- $(".holddatefrom").parent().append('<div class="required_label required">Required</div>'); >+ $(".holddatefrom").parent().append(requiredDiv); > } > if( OPACMandatoryHoldDates == "end" || OPACMandatoryHoldDates == "both" ) { > $(".futuredate").prop( 'required', true ); >- $(".futuredate").parent().append('<div class="required_label required">Required</div>'); >+ $(".futuredate").parent().append(requiredDiv); > } > } > $(".holddatefrom,.futuredate").prop("readOnly", true); >-- >2.35.3
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 30108
:
130745
|
130746
|
130747
|
131372
|
131376
|
131377
|
131378
|
131379
|
133462
|
133463
|
133464
|
133465
| 134476