From 8c1a692459afccba098bdfbc6af8e0e170ba7888 Mon Sep 17 00:00:00 2001 From: treamz Date: Sun, 22 Mar 2026 10:37:25 +0300 Subject: [PATCH] PDF: hide step 3+4 headers for pages tab (inline actions only) --- public/pdf.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/public/pdf.html b/public/pdf.html index d0d3c5c..1bb5836 100644 --- a/public/pdf.html +++ b/public/pdf.html @@ -982,7 +982,7 @@ -
+
3 Обработка @@ -1388,9 +1388,12 @@ stepResult.style.display = 'none'; downloadLink.style.display = 'none'; progressWrap.style.display = 'none'; - // Hide "Выполнить" for tabs with inline actions (pages have own buttons) - const noMainButton = ['pages']; - actionWrap.style.display = noMainButton.includes(tab.dataset.op) ? 'none' : 'block'; + // Hide step 3+4 entirely for tabs with inline actions + const inlineTabs = ['pages']; + const isInline = inlineTabs.includes(tab.dataset.op); + var s3 = document.getElementById('step3Wrap'); + if (s3) s3.style.display = isInline ? 'none' : ''; + actionWrap.style.display = isInline ? 'none' : 'block'; }); });