From 909d6220cadbd311ece4a1930efd8221a13386e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 6 Aug 2020 20:29:35 +0200 Subject: Fix popup error on long event creation. --- static/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3