Bugzilla – Attachment 191312 Details for
Bug 41564
Tidy kohaTable block - admin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41564: Tidy kohaTable - admin/auth_subfields_structure.tt
Bug-41564-Tidy-kohaTable---adminauthsubfieldsstruc.patch (text/plain), 2.08 KB, created by
Owen Leonard
on 2026-01-12 19:35:54 UTC
(
hide
)
Description:
Bug 41564: Tidy kohaTable - admin/auth_subfields_structure.tt
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-01-12 19:35:54 UTC
Size:
2.08 KB
patch
obsolete
>From 73c17652f23e95035dc064d93bd6e3df58972afc Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 10:48:29 +0100 >Subject: [PATCH] Bug 41564: Tidy kohaTable - admin/auth_subfields_structure.tt > >See bug 41324 comment 6 > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../en/modules/admin/auth_subfields_structure.tt | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt >index 5ab6d0c8847..76f063e8fcc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/auth_subfields_structure.tt >@@ -435,6 +435,10 @@ > [% INCLUDE 'datatables.inc' %] > [% Asset.js( "lib/sortable/Sortable.min.js" ) | $raw %] > [% Asset.js("js/admin-menu.js") | $raw %] >+ <script> >+ const tagsubfield = [% IF tabsubfield %]"[% tabsubfield | html %]"[% ELSE %]null[% END %]; >+ </script> >+ > <script> > $(document).ready(function() { > $("#table_authsubfieldstructure").kohaTable({ >@@ -443,13 +447,13 @@ > }); > > if ($("#subfieldtabs").length > 0) { >- [% IF ( tagsubfield && tagsubfield == "@") %] >+ if (tagsubfield && tagsubfield == "@"){ > $("#subfieldtabs a[href='#AT_panel']").tab("show"); >- [% ELSIF ( tagsubfield && tagsubfield != "@") %] >- $("#subfieldtabs a[href='#[% tagsubfield | html %]_panel']").tab("show"); >- [% ELSE %] >+ } else if ( tagsubfield && tagsubfield != "@") { >+ $(`#subfieldtabs a[href='#${tagsubfield}_panel']`).tab("show"); >+ } else { > $("#subfieldtabs a:first").tab("show"); >- [% END %] >+ } > > var subfields_list = $("#subfieldtabs > ul"); > var sortable_subfields = new Sortable(subfields_list[0], { >-- >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 41564
:
191082
|
191083
|
191084
|
191085
|
191086
|
191087
|
191088
|
191089
|
191090
|
191091
|
191092
|
191093
|
191094
|
191095
|
191096
|
191097
|
191098
|
191099
|
191100
|
191310
|
191311
| 191312 |
191313
|
191314
|
191315
|
191316
|
191317
|
191318
|
191319
|
191320
|
191321
|
191322
|
191323
|
191324
|
191325
|
191326
|
191327
|
191328
|
191329