Lucas Gass
55b050b607
This patch fixes all the occurrences, staff and OPAC. The problem only happens on some versions of Chrome. TO TEST: -set up a new list with a few items -go to /cgi-bin/koha/virtualshelves/shelves.pl and view that list. -Click 'Print List' in Chrome. -The tab opens but immediately closes itself. -Apply patch and clear cache -Try again, the print dialouge remains open -Go to cgi-bin/koha/sco/sco-main.pl in Chrome, make sure you can finish and print successfully -In the staff client in Chrome makes sure printing works in the following areas: 1. /cgi-bin/koha/circ/circulation.pl Print Slip and Print Quick Slip 2. /cgi-bin/koha/members/boraccount.pl Make a payment and make sure you can print the invoice 3. cgi-bin/koha/labels/spinelabel-home.pl Make a quick spine label in Chrome and make sure that prints. Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
16 lines
432 B
PHP
16 lines
432 B
PHP
[% USE raw %]
|
|
<!-- slip-print.inc -->
|
|
<script>
|
|
[% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %]
|
|
[% Koha.Preference('IntranetSlipPrinterJS') | $raw %]
|
|
[% ELSE %]
|
|
$( window ).load(function() {
|
|
window.print();
|
|
window.onafterprint = function () {
|
|
window.close();
|
|
}
|
|
setTimeout('window.close()', 1000); //Hack from Chrome < 63
|
|
});
|
|
[% END %]
|
|
</script>
|
|
<!-- / slip-print.inc -->
|