diff --git a/web/static/js/swapp.js b/web/static/js/swapp.js index b88023f..e369a88 100644 --- a/web/static/js/swapp.js +++ b/web/static/js/swapp.js @@ -148,7 +148,7 @@ return active_targets.forEach(function(target){ var targetButton; console.info("Loading CSV data of " + target.name + "…"); - targetButton = $(".orbiters_filters .target." + target.slug); + targetButton = $(".targets-filters .target." + target.slug); targetButton.addClass('loading'); return this$.loadData(target.slug, started_at, stopped_at).then(function(data){ console.info("Loaded CSV data of " + target.name + "."); diff --git a/web/static/js/swapp.ls b/web/static/js/swapp.ls index 4139030..fed6da5 100644 --- a/web/static/js/swapp.ls +++ b/web/static/js/swapp.ls @@ -148,7 +148,7 @@ https://gitlab.irap.omp.eu/CDPP/SPACEWEATHERONLINE active_targets = [@targets[k] for k of @targets when @targets[k].active] active_targets.forEach((target) ~> console.info "Loading CSV data of #{target.name}…" - targetButton = $(".orbiters_filters .target.#{target.slug}") + targetButton = $(".targets-filters .target.#{target.slug}") targetButton.addClass('loading') @loadData(target.slug, started_at, stopped_at).then( (data) ~> diff --git a/web/view/home.html.jinja2 b/web/view/home.html.jinja2 index 9ea227b..490ba88 100755 --- a/web/view/home.html.jinja2 +++ b/web/view/home.html.jinja2 @@ -2,6 +2,9 @@ {% set menu_section = 'home' %} {% block title %}Home{% endblock %} +{# This is the main template file, along with the layout. #} +{# The engine is Jinja2, close to Twig (yet not as good) #} + {% block content %} {% macro target_button(target) -%} @@ -27,9 +30,14 @@