aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriyansh <[email protected]>2021-12-17 04:33:38 -0500
committerPriyansh <[email protected]>2021-12-17 04:33:38 -0500
commitf255d24707ef788ec9c725562d2a3b554f6019d6 (patch)
treea4550ee58b7a296afc5f970f0197f3c2b70db8b3
parent4580079046a624f376af6284bd52402f514923f8 (diff)
downloadtemp_pred_arima-f255d24707ef788ec9c725562d2a3b554f6019d6.tar.xz
temp_pred_arima-f255d24707ef788ec9c725562d2a3b554f6019d6.zip
Disable search on processing
-rw-r--r--static/js/prediction.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/js/prediction.js b/static/js/prediction.js
index 7a8e2bf..4470364 100644
--- a/static/js/prediction.js
+++ b/static/js/prediction.js
@@ -54,6 +54,7 @@ function predictData(startDate, endDate, cityId, cityName, latitude, longitude)
alert('Please enter a valid date range');
} else {
displayDataButton.classList.add('hidden');
+ document.getElementById('citySearch').setAttribute('disabled', 'disabled');
document.getElementById("processingButton").classList.remove('hidden');
document.getElementById('predictionImage').innerHTML = "";
$.post("/receiveDates", {
@@ -124,7 +125,7 @@ function predictData(startDate, endDate, cityId, cityName, latitude, longitude)
document.getElementById("processingButton").classList.add('hidden');
displayDataButton.classList.remove('hidden');
-
+ document.getElementById('citySearch').removeAttribute('disabled');
document.getElementById('rangeContainer').classList.remove('hidden');
changeColor({
city: cityName,