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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt (-8 / +10 lines)
Lines 303-318 Link Here
303
    [% INCLUDE 'select2.inc' %]
303
    [% INCLUDE 'select2.inc' %]
304
    <script>
304
    <script>
305
        var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'transfers', 'transferstable', 'json' ) | $raw %]
305
        var table_settings = [% TablesSettings.GetTableSettings( 'circ', 'transfers', 'transferstable', 'json' ) | $raw %]
306
        $(document).ready( function() {
306
        var found = [% found ? 1 : 0 | html %];
307
            $(".printtransferslip").on("click", function(e){
307
    </script>
308
    <script>
309
        $(document).ready(function () {
310
            $(".printtransferslip").on("click", function (e) {
308
                e.preventDefault();
311
                e.preventDefault();
309
                var itemnumber = $(this).attr('data-itemnumber');
312
                var itemnumber = $(this).attr("data-itemnumber");
310
                var to_branch = $(this).attr('data-tobranch');
313
                var to_branch = $(this).attr("data-tobranch");
311
                window.open("/cgi-bin/koha/circ/transfer-slip.pl?transferitem=" + itemnumber + "&branchcode=" + to_branch);
314
                window.open("/cgi-bin/koha/circ/transfer-slip.pl?transferitem=" + itemnumber + "&branchcode=" + to_branch);
312
            });
315
            });
313
            [% IF ( found ) %]
316
            if (found) {
314
                $("#transfer_confirm").modal('show');
317
                $("#transfer_confirm").modal("show");
315
            [% END %]
318
            }
316
            var transfers_table = $("#transferstable").kohaTable(
319
            var transfers_table = $("#transferstable").kohaTable(
317
                {
320
                {
318
                    searching: false,
321
                    searching: false,
319
- 

Return to bug 41568