Compare commits

...

2 Commits

3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -293,14 +293,14 @@ def configure():
date_end=end,
time_span=time,
slots=slots_amount,
slot_lenght=slot_length,
slot_length=slot_length,
user=session["username"],
mail=mail,
note=note,
calendar_enabled=add_to_calendar,
title=title,
custom_fields=custom,
clients_p_slot=clients_p_slot
clients_per_slot=clients_p_slot
)
if not inserted_id:
+1 -1
View File
@@ -452,7 +452,7 @@ document.addEventListener('DOMContentLoaded', function () {
const slotStartSet = new Set(candidateSlots.map(function (slot) { return slot.start; }));
const allDays = dateRangeInclusive(String(available.date_start || ''), String(available.date_end || ''));
let slotMinTime = '08:15:00';
let slotMinTime = '08:00:00';
let slotMaxTime = '20:00:00';
const visibleStart = allDays[0] || String(available.date_start || '');
+2 -2
View File
@@ -435,8 +435,8 @@
slotLengthInput.addEventListener('change', calculateSlots);
}
if (clientsperslot) {
slotLengthInput.addEventListener('input', calculateSlots);
slotLengthInput.addEventListener('change', calculateSlots);
clientsperslot.addEventListener('input', calculateSlots);
clientsperslot.addEventListener('change', calculateSlots);
}
if (startDateInput.value && endDateInput.value) {