Fix DOMContentLoaded and switchTab to auto-render 37 channels table

This commit is contained in:
parastoo 2026-11-11 12:58:58 +00:00
parent 17491e8437
commit dcec6a4b35
2 changed files with 4 additions and 0 deletions

View file

@ -1124,6 +1124,7 @@
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
const activeBtn = document.getElementById('tab-btn-' + tabId);
if (activeBtn) activeBtn.classList.add('active');
if (tabId === 'channels' && typeof renderChannelsTable === 'function') renderChannelsTable();
}
function filterLine(line) {
@ -1386,6 +1387,7 @@ ${t.post_draft}
loadPersistedState();
calculateSimulator();
updateLiveAdPreview();
renderChannelsTable();
});
</script>
</body>

View file

@ -1124,6 +1124,7 @@
document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));
const activeBtn = document.getElementById('tab-btn-' + tabId);
if (activeBtn) activeBtn.classList.add('active');
if (tabId === 'channels' && typeof renderChannelsTable === 'function') renderChannelsTable();
}
function filterLine(line) {
@ -1386,6 +1387,7 @@ ${t.post_draft}
loadPersistedState();
calculateSimulator();
updateLiveAdPreview();
renderChannelsTable();
});
</script>
</body>