Bug 41578: Tidy kohaTable - serials/claims.tt

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-01-08 14:43:02 +01:00 committed by Lucas Gass
parent ec7e97f2eb
commit 2f5cb3182b
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 6 additions and 2 deletions

View File

@ -217,11 +217,15 @@
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'datatables.inc' %]
<script>
var table_settings = [% TablesSettings.GetTableSettings( "serials", "claims", "claimst", "json" ) | $raw %];
const vendor_id = "[% supplierid | html %]";
</script>
<script>
var sTable;
$(document).ready(function () {
enableSelectedActions();
var table_settings = [% TablesSettings.GetTableSettings( "serials", "claims", "claimst", "json" ) | $raw %];
sTable = $("#claimst").kohaTable(
{
autowidth: false,
@ -242,7 +246,7 @@
$("#ExportSelected").click(function () {
// We need to use "input[name=serialid]:checked" instead of "input:checked". Otherwise, the "check all" box will pass the value of "on" as a serialid, which produces a SQL error.
var selected = $("input[name=serialid]:checked");
var supplierid = [% supplierid | html %]
var supplierid = vendor_id;
if (selected.length == 0) {
alert(_("Please select at least one item to export."));