Bugzilla – Attachment 194952 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
Bug-41582-Tidy-kohaTable---opac-messagingtt.patch (text/plain), 2.61 KB, created by
Paul Derscheid
on 2026-03-09 07:44:15 UTC
(
hide
)
Description:
Bug 41582: Tidy kohaTable - opac-messaging.tt
Filename:
MIME Type:
Creator:
Paul Derscheid
Created:
2026-03-09 07:44:15 UTC
Size:
2.61 KB
patch
obsolete
>From 0185ce9f060625f7b57737f58eb29dfb3ab845e7 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 > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> >--- > .../bootstrap/en/modules/opac-messaging.tt | 19 ++++++++++--------- > 1 file changed, 10 insertions(+), 9 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 6a5c5e8338c..60beacf6a1c 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,18 @@ > [% 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 %], >+ OPACTableColExpandedByDefault: [% Koha.Preference('OPACTableColExpandedByDefault') ? 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'); >@@ -416,12 +422,7 @@ > }); > } > >- [% IF ( Koha.Preference('OPACTableColExpandedByDefault') ) %] >- var responsive_display = DataTable.Responsive.display.childRowImmediate; >- [% ELSE %] >- var responsive_display = DataTable.Responsive.display.childRow; >- [% END %] >- >+ var responsive_display = prefs.OPACTableColExpandedByDefault ? DataTable.Responsive.display.childRowImmediate : DataTable.Responsive.display.childRow; > $(".table").kohaTable({ > searching: false, > paging: false, >-- >2.39.5
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
|
191450
|
191451
|
191452
|
191453
|
191454
|
191455
|
191456
|
191457
|
191458
|
191459
|
191460
|
191461
|
191462
|
191463
|
191464
|
191465
|
191569
|
194666
|
194667
|
194668
|
194669
|
194670
|
194671
|
194672
|
194673
|
194674
|
194675
|
194676
|
194677
|
194678
|
194679
|
194680
|
194681
|
194682
|
194943
|
194944
|
194945
|
194946
|
194947
|
194948
|
194949
|
194950
|
194951
| 194952 |
194953
|
194954
|
194955
|
194956
|
194957
|
194958
|
194959
|
194960
|
194961
|
194962
|
195225