aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-05-17 01:10:46 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2021-05-17 01:10:46 +0200
commited0e9a99601bf9c5b8d3267c6c3d1925f3afc2bc (patch)
treef0062573208861c9ddf5efc6b408d8bbeea9c68e
parentCleanup + fix for wholeday checkbox. (diff)
downloadcalp-ed0e9a99601bf9c5b8d3267c6c3d1925f3afc2bc.tar.gz
calp-ed0e9a99601bf9c5b8d3267c6c3d1925f3afc2bc.tar.xz
Long events now wholeday per default.
-rw-r--r--static/script.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/static/script.js b/static/script.js
index 8042c341..7d3d2c29 100644
--- a/static/script.js
+++ b/static/script.js
@@ -314,6 +314,12 @@ window.onload = function () {
popupElement.querySelector("input[name='summary']").focus();
+ /* This assumes that it's unchecked beforehand.
+ Preferably we would just ensure that it's checked here,
+ But we also need to make sure that the proper handlers
+ are run then */
+ popupElement.querySelector("input[name='wholeday']").click();
+
});
}
}