diff options
Diffstat (limited to 'web/static/js/app.js')
| -rw-r--r-- | web/static/js/app.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/web/static/js/app.js b/web/static/js/app.js index 2f2cb6f..0f1f087 100644 --- a/web/static/js/app.js +++ b/web/static/js/app.js @@ -106,7 +106,9 @@ async function refreshData() { // Get HTML response and update tab content const html = await tabResponse.text(); - document.getElementById('tab-content').innerHTML = html; + const tabContent = document.getElementById('tab-content'); + tabContent.innerHTML = html; + htmx.process(tabContent); // Update timestamp updateLastUpdatedTime(); @@ -156,7 +158,9 @@ async function autoRefresh() { if (tabResponse.ok) { const html = await tabResponse.text(); - document.getElementById('tab-content').innerHTML = html; + const tabContent = document.getElementById('tab-content'); + tabContent.innerHTML = html; + htmx.process(tabContent); updateLastUpdatedTime(); console.log('Auto-refresh successful'); } |
