Bugzilla – Attachment 191167 Details for
Bug 41580
Tidy kohaTable block - tools
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41580: Tidy kohaTable - tools/inventory.tt
b87b416.patch (text/plain), 2.29 KB, created by
Jonathan Druart
on 2026-01-09 14:53:41 UTC
(
hide
)
Description:
Bug 41580: Tidy kohaTable - tools/inventory.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-01-09 14:53:41 UTC
Size:
2.29 KB
patch
obsolete
>From b87b416a41e0af6079f18c4649ea7de3782e8bd4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jan 2026 15:54:56 +0100 >Subject: [PATCH] Bug 41580: Tidy kohaTable - tools/inventory.tt > >--- > .../prog/en/modules/tools/inventory.tt | 15 ++++++++++----- > 1 file changed, 10 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >index 00603354510..44a0cd87b22 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/inventory.tt >@@ -407,6 +407,10 @@ > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'datatables.inc' %] > [% INCLUDE 'calendar.inc' %] >+ <script> >+ var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'inventory', 'inventoryt', 'json' ) | $raw %]; >+ const uploadedbarcodesflag = [% uploadedbarcodesflag ? 1 : 0 | html %]; >+ </script> > <script> > function checkForm() { > if ( $('#uploadbarcodes').val() && $('#barcodelist').val() ) { >@@ -459,21 +463,22 @@ > } > > $(document).ready(function(){ >- var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'inventory', 'inventoryt', 'json' ) | $raw %]; > inventorydt = $("#inventoryt").kohaTable({ > pagingType: 'full_numbers', > bKohaColumnsUseNames: true, >- [% IF uploadedbarcodesflag %] >+ ...(uploadedbarcodesflag >+ ? { > // sort on callnumber >- order: [[ 2, "asc" ]], >- [% ELSE %] >+ order: [[ 2, "asc" ]] >+ } >+ : { > // first column contains checkboxes > columnDefs: [ > { orderable: false, searchable: false, targets: [ 0 ] } > ], > // 3rd column is callnumber > order: [[ 2, "asc" ]], >- [% END %] >+ }), > drawCallback: function() { > //bind the click handler script to the newly created elements held in the table > $('.openWin').bind('click',function(e){ >-- >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 41580
:
191163
|
191164
|
191165
|
191166
| 191167 |
191168
|
191169
|
191170
|
191171