diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-10-10 16:11:44 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-10-10 16:11:44 +0200 |
commit | 31dbf6755e99205f35d2802189f67cf5464dbc13 (patch) | |
tree | 5d9a5d4a5edb64bbba422cd89d9fd49696eb7b70 /static | |
parent | whitespace fixes. (diff) | |
download | calp-31dbf6755e99205f35d2802189f67cf5464dbc13.tar.gz calp-31dbf6755e99205f35d2802189f67cf5464dbc13.tar.xz |
HTML Select summary when creating new event.
Diffstat (limited to '')
-rw-r--r-- | static/script.js | 5 |
1 files changed, 5 insertions, 0 deletions
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 () { |