aboutsummaryrefslogtreecommitdiff
path: root/module/calp/html/view
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-10 12:08:43 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-10 16:20:03 +0100
commit5a34ac846be467e80e24d04a8683d16924c43b36 (patch)
treedd49c656f5211ef5afc16a5aa20dc3dadcb3b756 /module/calp/html/view
parentRepair <date-time-input/> (diff)
downloadcalp-5a34ac846be467e80e24d04a8683d16924c43b36.tar.gz
calp-5a34ac846be467e80e24d04a8683d16924c43b36.tar.xz
Repair event position in week.
Diffstat (limited to 'module/calp/html/view')
-rw-r--r--module/calp/html/view/calendar/month.scm2
-rw-r--r--module/calp/html/view/calendar/week.scm2
2 files changed, 2 insertions, 2 deletions
diff --git a/module/calp/html/view/calendar/month.scm b/module/calp/html/view/calendar/month.scm
index e058a2ec..02689fd5 100644
--- a/module/calp/html/view/calendar/month.scm
+++ b/module/calp/html/view/calendar/month.scm
@@ -35,7 +35,7 @@
(events-between s e (list->stream long-events)))))
(date-range pre-start post-end (date day: 7))))
- `((script "const VIEW='month';")
+ `((script "window.VIEW='month';")
(header (@ (class "table-head"))
,(string-titlecase (date->string start-date "~B ~Y")))
(div (@ (class "caltable")
diff --git a/module/calp/html/view/calendar/week.scm b/module/calp/html/view/calendar/week.scm
index 3eb8752b..499de1d6 100644
--- a/module/calp/html/view/calendar/week.scm
+++ b/module/calp/html/view/calendar/week.scm
@@ -25,7 +25,7 @@
(define*-public (render-calendar key: calendars events start-date end-date #:allow-other-keys)
(let* ((long-events short-events (partition long-event? (stream->list (events-between start-date end-date events))))
(range (date-range start-date end-date)))
- `((script "const VIEW='week';")
+ `((script "window.VIEW='week';")
(div (@ (class "calendar"))
(div (@ (class "days"))
;; Top left area