From e79b713c67cddd8131032f590f9e7ebb15e90ae4 Mon Sep 17 00:00:00 2001 From: nugroho Date: Sun, 6 Jul 2025 00:16:06 +0700 Subject: [PATCH] printing bug fix --- modules/laporan-view.html | 55 +++------------------------------------ 1 file changed, 3 insertions(+), 52 deletions(-) diff --git a/modules/laporan-view.html b/modules/laporan-view.html index 9f58e82..af1a208 100644 --- a/modules/laporan-view.html +++ b/modules/laporan-view.html @@ -203,7 +203,6 @@ "Terlambat", "Tidak Terlaksana" ] - // console.log(data) function µ(selector) { if (selector) return $(thisDialog.box).find(selector); @@ -269,7 +268,7 @@ requestAnimationFrame(() => { setTimeout(() => { window.print(); - // window.close(); + window.close(); }, 100); // small delay ensures DOM is painted }); <\/script> @@ -332,7 +331,7 @@ requestAnimationFrame(() => { setTimeout(() => { window.print(); - // window.close(); + window.close(); }, 100); // small delay ensures DOM is painted }); <\/script> @@ -395,7 +394,7 @@ requestAnimationFrame(() => { setTimeout(() => { window.print(); - // window.close(); + window.close(); }, 100); // small delay ensures DOM is painted }); <\/script> @@ -405,43 +404,6 @@ pw.document.close(); }); }); - µ('#print').off("click").click(()=>{ - const content = µ('.print')[0]; - if(!content) return; - const pw = window.open('', '_blank'); - pw.document.write(` - - - ${printTitle} - - - - - - ${content.innerHTML} -