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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-batch.tt (-6 / +5 lines)
Lines 364-380 Link Here
364
            });
364
            });
365
            $(".export").on("click", function (e) {
365
            $(".export").on("click", function (e) {
366
                e.preventDefault();
366
                e.preventDefault();
367
                var label_id = $(this).data("label-id");
367
                var export_label_id = $(this).data("label-id");
368
                var batch_id = $(this).data("batch-id");
368
                var export_batch_id = $(this).data("batch-id");
369
                location.href = "/cgi-bin/koha/labels/label-print.pl?batch_id=" + batch_id + "&label_id=" + label_id;
369
                location.href = "/cgi-bin/koha/labels/label-print.pl?batch_id=" + export_batch_id + "&label_id=" + export_label_id;
370
            });
370
            });
371
            $("#savedesc").click(function (event) {
371
            $("#savedesc").click(function (event) {
372
                event.preventDefault(); // prevent form submission
372
                event.preventDefault(); // prevent form submission
373
                var newdescription = $('input[name="description"]').val();
373
                var newdescription = $('input[name="description"]').val();
374
                var batch_id = $(this).data("batch_id");
374
                var save_batch_id = $(this).data("batch_id");
375
                var ajaxData = {
375
                var ajaxData = {
376
                    newdescription: newdescription,
376
                    newdescription: newdescription,
377
                    batch_id: batch_id,
377
                    batch_id: save_batch_id,
378
                    op: "cud-set_permission",
378
                    op: "cud-set_permission",
379
                    csrf_token: $('meta[name="csrf-token"]').attr("content"),
379
                    csrf_token: $('meta[name="csrf-token"]').attr("content"),
380
                };
380
                };
381
- 

Return to bug 41571