From 8cd98ecd1811bb91391cf64904914356ad41af52 Mon Sep 17 00:00:00 2001 From: ralf Date: Sun, 25 Aug 2024 15:09:00 +0200 Subject: [PATCH] fix / hack print dialogs (Column-selection and Please wait...) to close before printing --- api/js/etemplate/et2_extension_nextmatch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/et2_extension_nextmatch.ts b/api/js/etemplate/et2_extension_nextmatch.ts index 617279f905..fdaa0ced06 100644 --- a/api/js/etemplate/et2_extension_nextmatch.ts +++ b/api/js/etemplate/et2_extension_nextmatch.ts @@ -3145,7 +3145,7 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2 // Should be OK to print now dialog.updateComplete.then(() => { - resolve(); + window.setTimeout(() => resolve(), 500); }); }); }, 10 * fetchedCount); @@ -3175,7 +3175,7 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2 window.setTimeout(function() { resolve(); - }, 0); + }, 200); } }.bind(this); const value = {