Merge pull request #17 from BreizhHardware/felix

Felix
This commit is contained in:
Félix MARQUET
2024-04-08 09:25:52 +02:00
committed by GitHub
2 changed files with 21 additions and 5 deletions

11
.idea/.gitignore generated vendored Normal file
View File

@@ -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

View File

@@ -189,7 +189,6 @@ function displayCalendar(data) {
function displayAlert(text) {
let alert = document.getElementById("Alert");
console.log(text);
alert.innerHTML = "";
alert.innerHTML = `
<div class="alert alert-success" role="alert">
@@ -366,11 +365,17 @@ function DisplayRDVPraticient(rdv){
}
function ButtonShowRdvPraticient() {
document.getElementById("CalendarPraticient").addEventListener("click", function () {
ajaxRequest('GET', "src/API/requests.php/api/rdv-praticient?id=" + id, function (data) {
DisplayRDVPraticient(data);
try {
document.getElementById("CalendarPraticient").addEventListener("click", function () {
ajaxRequest('GET', "src/API/requests.php/api/rdv-praticient?id=" + 1, function (data) {
DisplayRDVPraticient(data);
});
});
});
}
catch (e) {
//Do nothing
//console.error(e);
}
}