From 8e2ae8db3dbb1b52214be365933db3358d536952 Mon Sep 17 00:00:00 2001 From: Zuzanna Ludzik Date: Fri, 14 Aug 2026 15:54:15 +0200 Subject: [PATCH] remove redundant code --- www/form/inner.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/www/form/inner.js b/www/form/inner.js index e9396671a..f0ffd46ee 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -128,18 +128,10 @@ define([ return cancelBlock; }; - var nativePrint = window.print; - - var printFullContent = function () { - setTimeout(function () { nativePrint(); }, 50); - }; - - window.print = printFullContent; - window.addEventListener('keydown', function (e) { if ((e.ctrlKey || e.metaKey) && e.key.toLowerCase() === 'p') { e.preventDefault(); - printFullContent(); + window.print(); } });