Fixed Calendar

This commit is contained in:
2025-01-11 18:54:04 +01:00
parent 4f7bffe6fe
commit 07909550c3

View File

@@ -57,7 +57,7 @@ const calendarOptionsGrid = computed(() => {
select: function (info) {
console.log(info)
router.push(`/standardEntity/events/edit/?start=${info.startStr}&end=${info.endStr}&source=grid`)
router.push(`/standardEntity/events/create/?startDate=${encodeURIComponent(info.startStr)}&endDate=${encodeURIComponent(info.endStr)}`)
},
eventClick: function (info) {
console.log(info.event)
@@ -89,7 +89,7 @@ const calendarOptionsTimeline = ref({
}],
selectable: true,
select: function (info) {
router.push(`/events/edit/?start=${info.startStr}&end=${info.endStr}&resources=${JSON.stringify([info.resource.id])}&source=timeline`)
router.push(`/events/edit/?startDate=${info.startStr}&endDate=${info.endStr}&resources=${JSON.stringify([info.resource.id])}&source=timeline`)
},
eventClick: function (info){
console.log(info.event)