Bugzilla – Attachment 194668 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-course-details.tt
3f2aa45.patch (text/plain), 1.91 KB, created by
Jonathan Druart
on 2026-03-06 11:53:13 UTC
(
hide
)
Description:
Bug 41582: Tidy kohaTable - opac-course-details.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-03-06 11:53:13 UTC
Size:
1.91 KB
patch
obsolete
>From 3f2aa45360c88a3a68e035724be0ed525c61e06c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 16:44:32 +0100 >Subject: [PATCH] Bug 41582: Tidy kohaTable - opac-course-details.tt > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../bootstrap/en/modules/opac-course-details.tt | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >index 4031cca2d01..e9656388f1b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-details.tt >@@ -139,15 +139,16 @@ > [% BLOCK jsinclude %] > [% INCLUDE 'datatables.inc' %] > <script> >- $(document).ready(function() { >- table_settings = [% TablesSettings.GetTableSettings( 'opac', 'course_items', 'course-items-table', 'json' ) | $raw %]; >+ table_settings = [% TablesSettings.GetTableSettings( 'opac', 'course_items', 'course-items-table', 'json' ) | $raw %]; >+ addPrefs({ >+ OPACTableColExpandedByDefault: [% Koha.Preference('OPACTableColExpandedByDefault') ? 1 : 0 | html %], >+ }); >+ </script> > >- [% IF ( Koha.Preference('OPACTableColExpandedByDefault') ) %] >- var responsive_display = DataTable.Responsive.display.childRowImmediate; >- [% ELSE %] >- var responsive_display = DataTable.Responsive.display.childRow; >- [% END %] >+ <script> >+ $(document).ready(function() { > >+ var responsive_display = prefs.OPACTableColExpandedByDefault ? DataTable.Responsive.display.childRowImmediate : DataTable.Responsive.display.childRow; > $("#course-items-table").kohaTable( > { > dom: '<"top"<"table_controls"f>>rt<"clear">', >-- >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
|
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