From dcec6a4b35c41e80522a04561aff42ab88600ea8 Mon Sep 17 00:00:00 2001 From: parastoo Date: Wed, 11 Nov 2026 12:58:58 +0000 Subject: [PATCH] Fix DOMContentLoaded and switchTab to auto-render 37 channels table --- dashboards/telegram-ads.html | 2 ++ telegram-ads.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dashboards/telegram-ads.html b/dashboards/telegram-ads.html index a48c52d..62a6e16 100644 --- a/dashboards/telegram-ads.html +++ b/dashboards/telegram-ads.html @@ -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(); }); diff --git a/telegram-ads.html b/telegram-ads.html index a48c52d..62a6e16 100644 --- a/telegram-ads.html +++ b/telegram-ads.html @@ -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(); });