diff options
author | polo <ordipolo@gmx.fr> | 2025-06-21 01:44:16 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-06-21 01:44:16 +0200 |
commit | 8ee3440f204dfc6532a49a05719ba37a8c4df359 (patch) | |
tree | 03dec8764e55d1a4e1983fcceea8ccd99686989a /public/js/calendar.js | |
parent | f0e0b449f2bd6c4417e467b2903b29ad03a9626d (diff) | |
download | fullcalendar-8ee3440f204dfc6532a49a05719ba37a8c4df359.zip |
échanges client/serveur
Diffstat (limited to 'public/js/calendar.js')
-rw-r--r-- | public/js/calendar.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/public/js/calendar.js b/public/js/calendar.js index f1c55c4..2193272 100644 --- a/public/js/calendar.js +++ b/public/js/calendar.js | |||
@@ -1,3 +1,5 @@ | |||
1 | // js/calendar.js | ||
2 | |||
1 | document.addEventListener('DOMContentLoaded', function(){ | 3 | document.addEventListener('DOMContentLoaded', function(){ |
2 | const calendarEl = document.getElementById('calendar'); | 4 | const calendarEl = document.getElementById('calendar'); |
3 | let selected_start_string = null; | 5 | let selected_start_string = null; |
@@ -34,10 +36,12 @@ document.addEventListener('DOMContentLoaded', function(){ | |||
34 | allDayContent: 'Journée', // texte dans la case "toute la journée" | 36 | allDayContent: 'Journée', // texte dans la case "toute la journée" |
35 | nowIndicator: true, // barre rouge pour maintenant | 37 | nowIndicator: true, // barre rouge pour maintenant |
36 | 38 | ||
37 | events: '../src/load-events.php', // fichier PHP qui retourne les événements | 39 | // params en plus: https://fullcalendar.io/docs/events-json-feed |
40 | events: 'index.php?action=get_events', // fichier PHP qui retourne les événements | ||
38 | 41 | ||
39 | select: function(info){ | 42 | select: function(info){ |
40 | selected_start_string = info.startStr; // variable "globale" | 43 | selected_start_string = info.startStr; // variable "globale" |
44 | hideModal(); | ||
41 | }, | 45 | }, |
42 | //unselect: function(event, view){}, | 46 | //unselect: function(event, view){}, |
43 | 47 | ||