From 1215f1d7b7797224b5aba362792cee8bc789a102 Mon Sep 17 00:00:00 2001 From: lrdossan Date: Tue, 11 Jun 2024 17:35:19 +0200 Subject: [PATCH] temporarily disabled ARVE sensors data --- caimira/apps/calculator/static/js/form.js | 11 ++--- .../templates/cern/calculator.form.html.j2 | 42 ++++++++++--------- 2 files changed, 28 insertions(+), 25 deletions(-) diff --git a/caimira/apps/calculator/static/js/form.js b/caimira/apps/calculator/static/js/form.js index 71023c2a..406a454d 100644 --- a/caimira/apps/calculator/static/js/form.js +++ b/caimira/apps/calculator/static/js/form.js @@ -1014,13 +1014,14 @@ $(document).ready(function () { //Check all radio buttons previously selected $("input[type=radio]:checked").each(function() {require_fields(this)}); + // TEMPORARILY DISABLED // On CERN theme, when the arve_sensors_option changes we want to make its respective // children show/hide. - if ($("input[type=radio][name=arve_sensors_option]").length > 0) { - $("input[type=radio][name=arve_sensors_option]").change(on_use_sensors_data_change); - // Call the function now to handle forward/back button presses in the browser. - on_use_sensors_data_change(url); - } + // if ($("input[type=radio][name=arve_sensors_option]").length > 0) { + // $("input[type=radio][name=arve_sensors_option]").change(on_use_sensors_data_change); + // // Call the function now to handle forward/back button presses in the browser. + // on_use_sensors_data_change(url); + // } // When the ventilation_type changes we want to make its respective // children show/hide. diff --git a/caimira/apps/templates/cern/calculator.form.html.j2 b/caimira/apps/templates/cern/calculator.form.html.j2 index 4e5ae90a..2bab2783 100644 --- a/caimira/apps/templates/cern/calculator.form.html.j2 +++ b/caimira/apps/templates/cern/calculator.form.html.j2 @@ -5,28 +5,30 @@ ? -
-
Use data from ARVE sensors:
-
- - - - -
-
- - -