From ed0e9a99601bf9c5b8d3267c6c3d1925f3afc2bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 17 May 2021 01:10:46 +0200 Subject: Long events now wholeday per default. --- static/script.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'static/script.js') 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(); + }); } } -- cgit v1.2.3