aboutsummaryrefslogtreecommitdiff
path: root/static/script.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-11-15 00:51:02 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-11-15 00:51:02 +0100
commitf1e33a2177b94dd816ea9e0a31c4d2047f896aa1 (patch)
tree331dc79e7cf2ea6d84d2961ea31db7390bbe435b /static/script.ts
parentAdd HTMLElement.getListeners. (diff)
downloadcalp-f1e33a2177b94dd816ea9e0a31c4d2047f896aa1.tar.gz
calp-f1e33a2177b94dd816ea9e0a31c4d2047f896aa1.tar.xz
Reorder some popup setup.
Diffstat (limited to 'static/script.ts')
-rw-r--r--static/script.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/static/script.ts b/static/script.ts
index 21cb8302..490e8ba6 100644
--- a/static/script.ts
+++ b/static/script.ts
@@ -81,12 +81,10 @@ window.addEventListener('load', function() {
vcal_objects.set(uid, ev);
let popup = new PopupElement(uid);
- /* TODO these things fail, due to the event not being
- present in the global_events map */
- (document.querySelector('.days') as Element).appendChild(popup);
ev.register(popup);
- open_popup(popup);
console.log(popup);
+ (document.querySelector('.days') as Element).appendChild(popup);
+ open_popup(popup);
// (popup.querySelector("input[name='summary']") as HTMLInputElement).focus();
// let popupElement = document.getElementById("popup" + event.id);
// open_popup(popup_from_event(event));