Skip to content
Snippets Groups Projects
Commit e06f03a7 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Change grid resolution to 15 minutes for default slot editor

This implements #174
parent 8330d5c3
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,8 @@ ...@@ -18,7 +18,8 @@
'{{ event.timezone }}', '{{ event.timezone }}',
'{{ LANGUAGE_CODE }}', '{{ LANGUAGE_CODE }}',
'{{ event.start | timezone:event.timezone | date:"Y-m-d H:i:s" }}', '{{ event.start | timezone:event.timezone | date:"Y-m-d H:i:s" }}',
'{{ event.end | timezone:event.timezone | date:"Y-m-d H:i:s" }}' '{{ event.end | timezone:event.timezone | date:"Y-m-d H:i:s" }}',
'00:15:00'
); );
}); });
</script> </script>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// It was significantly changed to deal with the newer fullcalendar version, event specific timezones, // It was significantly changed to deal with the newer fullcalendar version, event specific timezones,
// to remove the dependency to moments timezone and improve the visualization of deletion // to remove the dependency to moments timezone and improve the visualization of deletion
function createAvailabilityEditors(timezone, language, startDate, endDate) { function createAvailabilityEditors(timezone, language, startDate, endDate, slotResolution='00:30:00') {
$("input.availabilities-editor-data").each(function () { $("input.availabilities-editor-data").each(function () {
const eventColor = '#28B62C'; const eventColor = '#28B62C';
...@@ -84,6 +84,7 @@ function createAvailabilityEditors(timezone, language, startDate, endDate) { ...@@ -84,6 +84,7 @@ function createAvailabilityEditors(timezone, language, startDate, endDate) {
selectOverlap: false, selectOverlap: false,
eventOverlap: false, eventOverlap: false,
eventChange: save_events, eventChange: save_events,
slotDuration: slotResolution,
}); });
plan.render(); plan.render();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment