This commit is contained in:
Zuzanna Ludzik 2026-08-11 17:19:15 +02:00
parent bb94d87ec4
commit f7cdf0ec2f
2 changed files with 3 additions and 10 deletions

View File

@ -1564,4 +1564,4 @@
max-height: none !important;
overflow-y: visible !important
}
}
}

View File

@ -128,23 +128,16 @@ define([
return cancelBlock;
};
var nativePrint = window.print.bind(window);
var nativePrint = window.print;
var printFullContent = function () {
var restore = function () {
window.onafterprint = null;
};
window.onafterprint = restore;
setTimeout(restore, 60000);
setTimeout(function () { nativePrint(); }, 50);
};
window.print = printFullContent;
window.addEventListener('keydown', function (e) {
console.log("app", APP)
if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'p') {
e.preventDefault();
printFullContent();