Bugzilla – Attachment 191311 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/aqbudgets.tt
Bug-41564-Tidy-kohaTable---adminaqbudgetstt.patch (text/plain), 2.36 KB, created by
Owen Leonard
on 2026-01-12 19:35:51 UTC
(
hide
)
Description:
Bug 41564: Tidy kohaTable - admin/aqbudgets.tt
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2026-01-12 19:35:51 UTC
Size:
2.36 KB
patch
obsolete
>From 26ae1c561568efc2a1cbc165c83cf462e0ad1b58 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 10:45:22 +0100 >Subject: [PATCH] Bug 41564: Tidy kohaTable - admin/aqbudgets.tt > >See bug 41324 comment 6 > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > .../prog/en/modules/admin/aqbudgets.tt | 20 +++++++++++++------ > 1 file changed, 14 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >index 377e4a939a9..148e05291bc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudgets.tt >@@ -676,9 +676,13 @@ > [% ELSIF op == 'list' %] > [% INCLUDE 'datatables.inc' %] > [% Asset.js("lib/jquery/plugins/treetable/jquery.treetable.js") | $raw %] >- <script> >- $(document).ready(function() { >- [% IF budgets %] >+ [% IF budgets %] >+ <script> >+ const budget_period_id = [% budget_period_id || 'null' | html %]; >+ </script> >+ >+ <script> >+ $(document).ready(function() { > var oTable = $("#budgeth").kohaTable({ > drawCallback: function ( oSettings ) { > if ( oSettings.aiDisplay.length == 0 ) >@@ -734,7 +738,7 @@ > $(oTable).treetable('collapseAll'); > }); > >- [% UNLESS budget_period_id %] >+ if (!budget_period_id){ > $("#hide_inactive").click(function(e){ > e.preventDefault(); > table_dt.columns(0).search(1).draw(); // Show only active=1 >@@ -744,9 +748,13 @@ > table_dt.columns(0).search("").draw(); // Show only active=1 > }); > $("#hide_inactive").click(); >- [% END %] >- [% END %] >+ } >+ }); >+ </script> >+ [% END %] > >+ <script> >+ $(document).ready(function() { > $(".deletefund-disabled").on("click", function(e){ > e.preventDefault(); > alert(_("This fund has sub funds. It cannot be deleted.")); >-- >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