From 1cbc1d111364d76bb13b03eb56652f2deafb1476 Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Tue, 29 Nov 2022 16:50:54 +0100 Subject: [PATCH] handle WHO message when input changes by user --- caimira/apps/calculator/static/js/form.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/caimira/apps/calculator/static/js/form.js b/caimira/apps/calculator/static/js/form.js index 48bca724..a88c5ccc 100644 --- a/caimira/apps/calculator/static/js/form.js +++ b/caimira/apps/calculator/static/js/form.js @@ -946,6 +946,9 @@ $(document).ready(function () { // Update geographic_cases geographic_cases('CHE'); + + // Handle WHO source message if geographic_cases pre-defined value is modified by user + $('#geographic_cases').change(() => $('#source_geographic_cases').hide()); // When the document is ready, deal with the fact that we may be here // as a result of a forward/back browser action. If that is the case, update