PDF: hide step 3+4 headers for pages tab (inline actions only)
This commit is contained in:
parent
782149e3fa
commit
8c1a692459
@ -982,7 +982,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Step 3: Action + Progress -->
|
<!-- Step 3: Action + Progress -->
|
||||||
<div style="margin-bottom:24px;">
|
<div id="step3Wrap" style="margin-bottom:24px;">
|
||||||
<div class="section-title">
|
<div class="section-title">
|
||||||
<span class="section-num">3</span>
|
<span class="section-num">3</span>
|
||||||
Обработка
|
Обработка
|
||||||
@ -1388,9 +1388,12 @@
|
|||||||
stepResult.style.display = 'none';
|
stepResult.style.display = 'none';
|
||||||
downloadLink.style.display = 'none';
|
downloadLink.style.display = 'none';
|
||||||
progressWrap.style.display = 'none';
|
progressWrap.style.display = 'none';
|
||||||
// Hide "Выполнить" for tabs with inline actions (pages have own buttons)
|
// Hide step 3+4 entirely for tabs with inline actions
|
||||||
const noMainButton = ['pages'];
|
const inlineTabs = ['pages'];
|
||||||
actionWrap.style.display = noMainButton.includes(tab.dataset.op) ? 'none' : 'block';
|
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';
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user