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

(-)a/koha-tmpl/intranet-tmpl/prog/js/modal_printer.js (-7 / +5 lines)
Lines 41-53 $(document).ready(function () { Link Here
41
        win.document.write(title);
41
        win.document.write(title);
42
        win.document.write(contents);
42
        win.document.write(contents);
43
        win.document.close();
43
        win.document.close();
44
        win.addEventListener("afterprint", function () {
44
        win.focus();
45
            win.addEventListener("focus", function () {
46
                win.close();
47
            });
48
            win.close();
49
        });
50
        win.print();
45
        win.print();
46
        win.onafterprint = function () {
47
            win.close();
48
        };
49
        setTimeout("window.close()", 1000); //Hack from Chrome < 63
51
    }
50
    }
52
51
53
    // Set focused on printable modals on open and autoprint if required
52
    // Set focused on printable modals on open and autoprint if required
54
- 

Return to bug 33260