[% ELSE %]
$( window ).load(function() {
window.print();
setTimeout('window.close()', 1);
window.onafterprint = function () {
window.close();
}
setTimeout('window.close()', 1000); //Hack from Chrome < 63
});
[% END %]
</script>
-