aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-08-06 20:29:35 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-08-06 20:29:35 +0200
commit909d6220cadbd311ece4a1930efd8221a13386e6 (patch)
treeabe2fbeac0ee1c9cd3b096ea0663ade477bc291b
parentFix popup when creating and deleting in week. (diff)
downloadcalp-909d6220cadbd311ece4a1930efd8221a13386e6.tar.gz
calp-909d6220cadbd311ece4a1930efd8221a13386e6.tar.xz
Fix popup error on long event creation.
-rw-r--r--static/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/script.js b/static/script.js
index db5b818e..23041df9 100644
--- a/static/script.js
+++ b/static/script.js
@@ -472,7 +472,7 @@ window.onload = function () {
);
c.onmouseup = eventCreator.create_event_finisher(
function (event) {
- let popupElement = event.querySelector(".popup-container");
+ let popupElement = document.getElementById("popup" + event.id);
open_popup(popupElement);
popupElement.querySelector("input[name='dtstart']").focus();