Bugzilla – Attachment 187993 Details for
Bug 28308
Select 'Days in advance' = 0 for Advance notice effectively disables PREDUE notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28308: JS changes
Bug-28308-JS-changes.patch (text/plain), 1.49 KB, created by
Jonathan Druart
on 2025-10-16 10:55:58 UTC
(
hide
)
Description:
Bug 28308: JS changes
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-10-16 10:55:58 UTC
Size:
1.49 KB
patch
obsolete
>From 23326f0c6d184b1014d9add1bd819cd47b1e4852 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 16 Oct 2025 12:41:44 +0200 >Subject: [PATCH] Bug 28308: JS changes > >--- > .../en/includes/messaging-preference-form.inc | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc >index cc56c1810c6..b3b8ad69f95 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/messaging-preference-form.inc >@@ -337,3 +337,21 @@ > [% END %] > </tbody> > </table> >+<script> >+ document.addEventListener("DOMContentLoaded", function () { >+ const selectElement = document.querySelector('select[name="2-DAYS"]'); >+ >+ const smsCheckbox = document.getElementById("sms2"); >+ const emailCheckbox = document.getElementById("email2"); >+ const digestCheckbox = document.getElementById("digest2"); >+ >+ function updateCheckboxes() { >+ const isDisabled = !selectElement.value; >+ if (smsCheckbox) smsCheckbox.disabled = isDisabled; >+ if (emailCheckbox) emailCheckbox.disabled = isDisabled; >+ if (digestCheckbox) digestCheckbox.disabled = isDisabled; >+ } >+ updateCheckboxes(); >+ selectElement.addEventListener("change", updateCheckboxes); >+ }); >+</script> >-- >2.34.1
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 28308
:
187992
| 187993 |
187994