From 31dbf6755e99205f35d2802189f67cf5464dbc13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sat, 10 Oct 2020 16:11:44 +0200 Subject: HTML Select summary when creating new event. --- static/script.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'static/script.js') diff --git a/static/script.js b/static/script.js index 894ebb20..5ed9c1e5 100644 --- a/static/script.js +++ b/static/script.js @@ -386,6 +386,11 @@ function place_in_edit_mode (event) { event.properties.calendar = this.value; } container.appendChild(calendar_dropdown); + + let tab = popup.getElementsByClassName("tab")[1]; + let radio = tab.getElementsByTagName("input")[0]; + radio.click(); + tab.querySelector("input[name='summary']").focus(); } window.onload = function () { -- cgit v1.2.3