Bugzilla – Attachment 191183 Details for
Bug 41582
Tidy kohaTable block - opac
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41582: Tidy kohaTable - opac-messaging.tt
7ee4298.patch (text/plain), 1.83 KB, created by
Jonathan Druart
on 2026-01-09 14:54:56 UTC
(
hide
)
Description:
Bug 41582: Tidy kohaTable - opac-messaging.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:54:56 UTC
Size:
1.83 KB
patch
obsolete
>From 7ee429854c51a72a6c70fb45e619f241a7d0d036 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 9 Jan 2026 10:15:03 +0100 >Subject: [PATCH] Bug 41582: Tidy kohaTable - opac-messaging.tt > >--- > .../opac-tmpl/bootstrap/en/modules/opac-messaging.tt | 11 ++++++++--- > 1 file changed, 8 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt >index 7e22a3421ff..ae012cb3348 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-messaging.tt >@@ -361,12 +361,17 @@ > [% INCLUDE 'opac-bottom.inc' %] > [% BLOCK jsinclude %] > [% INCLUDE 'datatables.inc' %] >+ <script> >+ addPrefs({ >+ PhoneNotification: [% Koha.Preference('PhoneNotification') ? 1 : 0 | html %], >+ TalkingTechItivaPhoneNotification: [% Koha.Preference('TalkingTechItivaPhoneNotification') ? 1 : 0 | html %], >+ }); >+ </script> >+ > <script> > $(document).ready(function(){ > function toggle_digest(id){ >- let PhoneNotification = [% Koha.Preference('PhoneNotification') || 0 | html %]; >- let TalkingTechItivaPhoneNotification = [% Koha.Preference('TalkingTechItivaPhoneNotification') || 0 | html %]; >- let phone_checked = TalkingTechItivaPhoneNotification ? false : PhoneNotification ? $("#phone"+id).prop("checked") : false; >+ let phone_checked = prefs.TalkingTechItivaPhoneNotification ? false : prefs.PhoneNotification ? $("#phone"+id).prop("checked") : false; > > if ( $("#email"+id).prop("checked") || $("#sms"+id).prop("checked") || phone_checked ) { > $("#digest"+id).attr("disabled", false).tooltip('disable'); >-- >2.43.0 >
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 41582
:
191174
|
191175
|
191176
|
191177
|
191178
|
191179
|
191180
|
191181
|
191182
| 191183 |
191184
|
191185
|
191186
|
191187
|
191188