many updates

This commit is contained in:
2026-01-13 09:42:16 -08:00
parent 4bb86b603e
commit 362f4cb5aa
81 changed files with 3106 additions and 336 deletions

View File

@@ -440,5 +440,23 @@
alert('Error saving segment: ' + err.message);
}
}
// Handle Query Params
document.addEventListener('DOMContentLoaded', () => {
const urlParams = new URLSearchParams(window.location.search);
const actId = urlParams.get('activity_id');
if (actId) {
// Switch to single tab
const tabEl = document.getElementById('single-tab');
const tab = new bootstrap.Tab(tabEl);
tab.show();
// Fill ID
document.getElementById('activityId').value = actId;
// Trigger search
document.getElementById('singleSearchBtn').click();
}
});
</script>
{% endblock %}