Bug 24061: Close the window after the page has been printed

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2019-11-20 09:19:51 +01:00 committed by Martin Renvoize
parent 0d07450e7e
commit 98784cc972
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -981,7 +981,9 @@ $(function() {
[% IF print %]
window.print();
setTimeout('window.close()', 1);
window.onafterprint = function () {
window.close();
}
[% END %]
AdjustRemark();