many updates
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user