aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-10-10 16:11:44 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-10-10 16:11:44 +0200
commit31dbf6755e99205f35d2802189f67cf5464dbc13 (patch)
tree5d9a5d4a5edb64bbba422cd89d9fd49696eb7b70
parentwhitespace fixes. (diff)
downloadcalp-31dbf6755e99205f35d2802189f67cf5464dbc13.tar.gz
calp-31dbf6755e99205f35d2802189f67cf5464dbc13.tar.xz
HTML Select summary when creating new event.
-rw-r--r--static/script.js5
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 () {