diff options
Diffstat (limited to 'public/js')
| -rw-r--r-- | public/js/calendar.js | 2 | ||||
| -rw-r--r-- | public/js/calendar_admin.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/public/js/calendar.js b/public/js/calendar.js index 844d411..8809246 100644 --- a/public/js/calendar.js +++ b/public/js/calendar.js | |||
| @@ -80,7 +80,7 @@ document.addEventListener('DOMContentLoaded', function(){ | |||
| 80 | const end_hour = (info.event.allDay ? '' : '<br>à ' + end.split('T')[1]).replace(":", "h"); | 80 | const end_hour = (info.event.allDay ? '' : '<br>à ' + end.split('T')[1]).replace(":", "h"); |
| 81 | const formated_end = end_date.split('-')[2] + '/' + end_date.split('-')[1] + '/' + end_date.split('-')[0] + end_hour; | 81 | const formated_end = end_date.split('-')[2] + '/' + end_date.split('-')[1] + '/' + end_date.split('-')[0] + end_hour; |
| 82 | 82 | ||
| 83 | let aside_content = `<div class="event" style="border-color: ` + info.event.backgroundColor +`;"> | 83 | let aside_content = `<div id="event" style="border-color: ` + info.event.backgroundColor +`;"> |
| 84 | <h3>` + info.event.title + `</h3> | 84 | <h3>` + info.event.title + `</h3> |
| 85 | <p><i>` + info.event.extendedProps.description + `</i></p>`; | 85 | <p><i>` + info.event.extendedProps.description + `</i></p>`; |
| 86 | if(checked && (formated_start === formated_end)){ // affichage simplifié évènement d'un jour | 86 | if(checked && (formated_start === formated_end)){ // affichage simplifié évènement d'un jour |
diff --git a/public/js/calendar_admin.js b/public/js/calendar_admin.js index a2fb1ac..17ae0c2 100644 --- a/public/js/calendar_admin.js +++ b/public/js/calendar_admin.js | |||
| @@ -81,7 +81,7 @@ document.addEventListener('DOMContentLoaded', function(){ | |||
| 81 | } | 81 | } |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | const aside_content = `<div class="form_event"> | 84 | const aside_content = `<div id="form_event"> |
| 85 | <div class="event_title_box"> | 85 | <div class="event_title_box"> |
| 86 | <h2>Nouvel évènement</h2> | 86 | <h2>Nouvel évènement</h2> |
| 87 | </div> | 87 | </div> |
| @@ -155,7 +155,7 @@ document.addEventListener('DOMContentLoaded', function(){ | |||
| 155 | const formated_start = formatDate(info.event.start); | 155 | const formated_start = formatDate(info.event.start); |
| 156 | const formated_end = formatDate(info.event.allDay ? minusOneDay(info.event.end) : info.event.end, info.event.allDay); | 156 | const formated_end = formatDate(info.event.allDay ? minusOneDay(info.event.end) : info.event.end, info.event.allDay); |
| 157 | 157 | ||
| 158 | const aside_content = `<div class="form_event"> | 158 | const aside_content = `<div id="form_event" style="border-color: ` + info.event.backgroundColor +`;"> |
| 159 | <div class="event_title_box"> | 159 | <div class="event_title_box"> |
| 160 | <h2>Modifier un évènement</h2> | 160 | <h2>Modifier un évènement</h2> |
| 161 | </div> | 161 | </div> |
