From 410eaa3db17dd03a382a92008e101e5b9c41518c Mon Sep 17 00:00:00 2001 From: Divlo Date: Mon, 19 Aug 2019 18:42:54 +0200 Subject: [PATCH] Hotfix weatherRequest error --- scripts/fonctions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/fonctions.js b/scripts/fonctions.js index 26ef43e..c509661 100644 --- a/scripts/fonctions.js +++ b/scripts/fonctions.js @@ -13,7 +13,7 @@ function weatherRequest(url,toDo) { case 'time': $('.results').html("La date et l'heure de " + city + " : " + showDateTimeValue); $("#cityName, #submitWeatherRequest").click(function() { - document.location.replace("../../function-views/weatherRequest.php"); + document.location.replace("../../views/function-views/weatherRequest.php"); }); break; case 'weather': @@ -21,14 +21,14 @@ function weatherRequest(url,toDo) { { $('.results').html(`🌎 Position : ${city}, RU
⏰ Date et heure : ${showDateTimeValue}
☁️ Météo : ${capitalize(json.weather[0].description)}
🌡️ Température : ${json.main.temp} °C
💧 Humidité : ${json.main.humidity}%
`); $("#cityName, #submitWeatherRequest").click(function() { - document.location.replace("../../function-views/weatherRequest.php"); + document.location.replace("../../views/function-views/weatherRequest.php"); }); } else { $('.results').html(`🌎 Position : ${city}, ${json.sys.country}
⏰ Date et heure : ${showDateTimeValue}
☁️ Météo : ${capitalize(json.weather[0].description)}
🌡️ Température : ${json.main.temp} °C
💧 Humidité : ${json.main.humidity}%
`); $("#cityName, #submitWeatherRequest").click(function() { - document.location.replace("../../function-views/weatherRequest.php"); + document.location.replace("../../views/function-views/weatherRequest.php"); }); } break;