View | Details | Raw Unified | Return to bug 41578
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/claims.tt (-3 / +6 lines)
Lines 217-227 Link Here
217
[% MACRO jsinclude BLOCK %]
217
[% MACRO jsinclude BLOCK %]
218
    [% INCLUDE 'calendar.inc' %]
218
    [% INCLUDE 'calendar.inc' %]
219
    [% INCLUDE 'datatables.inc' %]
219
    [% INCLUDE 'datatables.inc' %]
220
    <script>
221
        var table_settings = [% TablesSettings.GetTableSettings( "serials", "claims", "claimst", "json" ) | $raw %];
222
        const vendor_id = "[% supplierid | html %]";
223
    </script>
224
220
    <script>
225
    <script>
221
        var sTable;
226
        var sTable;
222
        $(document).ready(function () {
227
        $(document).ready(function () {
223
            enableSelectedActions();
228
            enableSelectedActions();
224
            var table_settings = [% TablesSettings.GetTableSettings( "serials", "claims", "claimst", "json" ) | $raw %];
225
            sTable = $("#claimst").kohaTable(
229
            sTable = $("#claimst").kohaTable(
226
                {
230
                {
227
                    autowidth: false,
231
                    autowidth: false,
Lines 242-248 Link Here
242
            $("#ExportSelected").click(function () {
246
            $("#ExportSelected").click(function () {
243
                // 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.
247
                // 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.
244
                var selected = $("input[name=serialid]:checked");
248
                var selected = $("input[name=serialid]:checked");
245
                var supplierid = [% supplierid | html %]
249
                var supplierid = vendor_id;
246
250
247
                if (selected.length == 0) {
251
                if (selected.length == 0) {
248
                    alert(_("Please select at least one item to export."));
252
                    alert(_("Please select at least one item to export."));
249
- 

Return to bug 41578