aboutsummaryrefslogtreecommitdiff
path: root/module/calp/html/view/calendar.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/calp/html/view/calendar.scm')
-rw-r--r--module/calp/html/view/calendar.scm7
1 files changed, 3 insertions, 4 deletions
diff --git a/module/calp/html/view/calendar.scm b/module/calp/html/view/calendar.scm
index 6945c5d2..dd94dc16 100644
--- a/module/calp/html/view/calendar.scm
+++ b/module/calp/html/view/calendar.scm
@@ -102,12 +102,11 @@
(content ,(date->string (date+ end-date (date day: 1)) "~s"))))
(script
- ,(format #f
- "
+ ,(lambda () (format #t "
EDIT_MODE=~:[false~;true~];
window.default_calendar='~a';"
- (edit-mode)
- (base64encode ((@ (vcomponent) default-calendar)))))
+ (edit-mode)
+ (base64encode ((@ (vcomponent) default-calendar))))))
(style ,(format #f "html {