diff --git a/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html b/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html index 2eb3820bffd9f5c1d874e29e326089a9ad22f5b1..a347a4927508bb7ec526f157fdfe4f56a6a67aa5 100755 --- a/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html +++ b/cerealblotchmodels/templates/cerealblotchmodels/barleynetblotchform.html @@ -320,7 +320,7 @@ document.getElementById('input-coordinates').style.display="none"; } - window.displayCoordinatesInput = (id) => { + window.displayCoordinatesInput = () => { document.getElementById("grid").checked = true; document.getElementById('input-weatherstation').style.display="none"; document.getElementById('input-coordinates').style.display="block"; @@ -620,6 +620,8 @@ } else { displayCoordinatesInput(); } + } else { + displayCoordinatesInput(); } }).catch(function(error) { console.error("Error initializing data:", error); diff --git a/cerealblotchmodels/templates/cerealblotchmodels/septoriahumiditymodelform.html b/cerealblotchmodels/templates/cerealblotchmodels/septoriahumiditymodelform.html index 7c41bfebe8edc373dec06186e86e431717741e3c..559b50c9284c241985404b2606ef678f042e8452 100644 --- a/cerealblotchmodels/templates/cerealblotchmodels/septoriahumiditymodelform.html +++ b/cerealblotchmodels/templates/cerealblotchmodels/septoriahumiditymodelform.html @@ -405,6 +405,7 @@ } else { + displayCoordinatesInput(); updateGSDates(); } });