Activity filter on upcoming page #147

This commit is contained in:
Ian Renton
2026-09-18 20:49:24 +01:00
parent eea045e4b8
commit 7bdc26c926
4 changed files with 64 additions and 61 deletions
+2 -1
View File
@@ -24,7 +24,7 @@ function loadAlerts() {
// Build a query string for the API, based on the filters that the user has selected.
function buildQueryString() {
let str = "?";
["dx_continent", "source"].forEach(fn => {
["dx_continent", "source", "sig"].forEach(fn => {
if (!allFilterOptionsSelected(fn)) {
str = str + getQueryStringFor(fn) + "&";
}
@@ -332,6 +332,7 @@ function loadOptions() {
// Populate the filters panel
generateMultiToggleFilterCard("#dx_continent_options", "dx_continent", options["continents"]);
generateMultiToggleFilterCard("#source-options", "source", options["alert_providers"]);
generateActivitiesMultiToggleFilterCard(options["sigs"]);
// Load URL params. These may select things from the various filter & display options, so the function needs
// to be called after these are set up, but if the URL params ask for "embedded mode", this will suppress