From bd107084604cd18974d1dbd66411f11be65059a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MARQUET?= Date: Mon, 8 Apr 2024 09:20:39 +0200 Subject: [PATCH 1/2] Update .gitignore --- .idea/.gitignore | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .idea/.gitignore diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..836ecda --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,11 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# GitHub Copilot persisted chat sessions +/copilot/chatSessions +../Request_Test/testHTTP.http \ No newline at end of file From cdef221672d8bd320895ce618e97774afba318fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MARQUET?= Date: Mon, 8 Apr 2024 09:25:30 +0200 Subject: [PATCH 2/2] Add try catch to Yanis function --- src/API/requests.php | 2 +- src/js/AJAX/index.js | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/API/requests.php b/src/API/requests.php index ec914ce..9b175cb 100644 --- a/src/API/requests.php +++ b/src/API/requests.php @@ -30,7 +30,7 @@ $router->GET('/api/search-postal', ["postal"], function($postal){ $router->GET('/api/search', ["type", "postal"], function($type, $postal){ global $pdo; searchDoctorByLocation($pdo, $postal, $type); -}) +}); $router->GET('/api/rdv', ["id"], function($id){ global $pdo; diff --git a/src/js/AJAX/index.js b/src/js/AJAX/index.js index 96a5eec..b3ee258 100644 --- a/src/js/AJAX/index.js +++ b/src/js/AJAX/index.js @@ -189,7 +189,6 @@ function displayCalendar(data) { function displayAlert(text) { let alert = document.getElementById("Alert"); - console.log(text); alert.innerHTML = ""; alert.innerHTML = `