diff --git a/AKModel/templates/admin/AKModel/default_slot_editor.html b/AKModel/templates/admin/AKModel/default_slot_editor.html index c3004e357649fe4c226c40113e1761b2ec16c955..7d288c9dc5f6045a88bd05cd8e3a73c895a6a386 100644 --- a/AKModel/templates/admin/AKModel/default_slot_editor.html +++ b/AKModel/templates/admin/AKModel/default_slot_editor.html @@ -18,7 +18,8 @@ '{{ event.timezone }}', '{{ LANGUAGE_CODE }}', '{{ 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> diff --git a/static_common/common/js/availabilities.js b/static_common/common/js/availabilities.js index 49d3e2bfb48e69712a6e0a1839999a455b1fd31d..84376ba599876a7424dc92404229aa6d986e6b24 100644 --- a/static_common/common/js/availabilities.js +++ b/static_common/common/js/availabilities.js @@ -6,7 +6,7 @@ // 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 -function createAvailabilityEditors(timezone, language, startDate, endDate) { +function createAvailabilityEditors(timezone, language, startDate, endDate, slotResolution='00:30:00') { $("input.availabilities-editor-data").each(function () { const eventColor = '#28B62C'; @@ -84,6 +84,7 @@ function createAvailabilityEditors(timezone, language, startDate, endDate) { selectOverlap: false, eventOverlap: false, eventChange: save_events, + slotDuration: slotResolution, }); plan.render();