Bugzilla – Attachment 191124 Details for
Bug 41569
Tidy kohaTable block - clubs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41569: Tidy kohaTable - clubs/patron-clubs-tab.tt
2ae2710.patch (text/plain), 2.21 KB, created by
Jonathan Druart
on 2026-01-09 14:47:40 UTC
(
hide
)
Description:
Bug 41569: Tidy kohaTable - clubs/patron-clubs-tab.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:47:40 UTC
Size:
2.21 KB
patch
obsolete
>From 2ae2710ab7723349846342e48c7c9d4fc51e9762 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 12:27:11 +0100 >Subject: [PATCH] Bug 41569: Tidy kohaTable - clubs/patron-clubs-tab.tt > >--- > .../prog/en/modules/clubs/patron-clubs-tab.tt | 14 ++++++++++---- > 1 file changed, 10 insertions(+), 4 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 c3caa6c5271..ee1769d36d6 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 >@@ -58,17 +58,23 @@ > </tbody> > </table> > [% END %] >+<script> >+ const borrowernumber = "[% borrowernumber | html %]"; >+</script> >+ > <script> > var clubs_dt_params = { > paging: true, > }; > $("#table_clubnoenrollmemnts").kohaTable(clubs_dt_params); > $("#table_clubenrollments").kohaTable(clubs_dt_params); >+</script> > >- [% IF CAN_user_clubs_enroll %] >+[% IF CAN_user_clubs_enroll %] >+<script> > function loadEnrollmentForm( id, enrollent_id = 0 ) { > $("body").css("cursor", "progress"); >- $('#clubs_panel').load('/cgi-bin/koha/clubs/patron-enroll.pl?borrowernumber=[% borrowernumber | html %]&id=' + id +'&enrollent_id='+ enrollent_id, function() { >+ $('#clubs_panel').load('/cgi-bin/koha/clubs/patron-enroll.pl?borrowernumber=" + borrowernumber + " &id=' + id +'&enrollent_id='+ enrollent_id, function() { > $("body").css("cursor", "default"); > }); > >@@ -81,7 +87,7 @@ > client.enrollments.cancel(id).then( > success => { > if ( success.success ) { >- $('#clubs_panel').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=[% borrowernumber | html %]', function() { >+ $('#clubs_panel').load('/cgi-bin/koha/clubs/patron-clubs-tab.pl?borrowernumber=" + borrowernumber + "', function() { > $("body").css("cursor", "default"); > }); > } else { >@@ -95,5 +101,5 @@ > ); > return false; > } >- [% END %] > </script> >+[% END %] >-- >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 41569
: 191124 |
191125
|
191126