Bugzilla – Attachment 176067 Details for
Bug 38255
Do not use dataTable constructor directly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38255: Fix JS error
Bug-38255-Fix-JS-error.patch (text/plain), 2.12 KB, created by
Jonathan Druart
on 2025-01-02 15:39:42 UTC
(
hide
)
Description:
Bug 38255: Fix JS error
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-01-02 15:39:42 UTC
Size:
2.12 KB
patch
obsolete
>From 28a75d25f2e039031557f29d4fb44ec43c9c47e9 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 10 Dec 2024 15:27:34 +0100 >Subject: [PATCH] Bug 38255: Fix JS error > >Uncaught SyntaxError: redeclaration of let >--- > .../intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt | 6 +++--- > .../prog/en/modules/patron_lists/patron-lists-tab.tt | 6 +++--- > 2 files changed, 6 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt >index 15d3a76eff9..644f35554f1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/clubs/patron-clubs-tab.tt >@@ -67,12 +67,12 @@ > [% END %] > > <script> >-let dt_params = { >+var clubs_dt_params = { > columnDefs: [{ sortable: false, targets: ["NoSort"] }], > paginate: true, > }; >-$("#table_clubnoenrollmemnts").kohaTable(dt_params); >-$("#table_clubenrollments").kohaTable(dt_params); >+$("#table_clubnoenrollmemnts").kohaTable(clubs_dt_params); >+$("#table_clubenrollments").kohaTable(clubs_dt_params); > > [% IF CAN_user_clubs_enroll %] > function loadEnrollmentForm( id, enrollent_id = 0 ) { >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/patron-lists-tab.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/patron-lists-tab.tt >index 22cb62e57d2..13e33153251 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/patron-lists-tab.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/patron_lists/patron-lists-tab.tt >@@ -104,12 +104,12 @@ > [% END %] > > <script> >- let dt_params = { >+ var patron_lists_dt_params = { > columnDefs: [{ sortable: false, bSearchable: false, targets: ["NoSort"] }], > sPaginationType: "full", > }; >- $("#table_listnopatron").kohaTable(dt_params); >- $("#table_inlists").kohaTable(dt_params); >+ $("#table_listnopatron").kohaTable(patron_lists_dt_params); >+ $("#table_inlists").kohaTable(patron_lists_dt_params); > > [% IF CAN_user_tools_manage_patron_lists %] > function addToList() { >-- >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 38255
:
175181
|
175182
|
175183
|
175184
|
175185
|
175352
|
175598
|
175599
|
175872
|
175873
|
176062
|
176063
|
176064
|
176065
|
176066
|
176067
|
176068
|
176069
|
176070
|
176071
|
176146
|
176348
|
176349
|
176350
|
176351
|
176352
|
176353
|
176354
|
176355
|
176356
|
176357
|
176358
|
176550
|
176551
|
176552
|
176553
|
176554
|
176555
|
176556
|
176557
|
176558
|
176559
|
176560
|
177076
|
177077
|
177078
|
177079
|
177080
|
177081
|
177082
|
177083
|
177084
|
177085
|
177086
|
177214
|
177215
|
177216
|
177217
|
177218
|
177219
|
177220
|
177221
|
177222
|
177223
|
177224
|
177262