diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-11 16:28:49 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-11 16:28:49 +0100 |
commit | 93c40e8eeaef8e1609759fb1f0cad1fc9285ab86 (patch) | |
tree | 0bec8403bddefbb4b0f9785765ce61ffbfba4106 /static/globals.ts | |
parent | Add madge for frontend dep visualization. (diff) | |
download | calp-93c40e8eeaef8e1609759fb1f0cad1fc9285ab86.tar.gz calp-93c40e8eeaef8e1609759fb1f0cad1fc9285ab86.tar.xz |
Made VIEW and EDIT_MODE correctly global.
Diffstat (limited to '')
-rw-r--r-- | static/globals.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/static/globals.ts b/static/globals.ts index be79dae7..b0871aa2 100644 --- a/static/globals.ts +++ b/static/globals.ts @@ -1,6 +1,5 @@ export { find_block, - VIEW, EDIT_MODE, vcal_objects, event_calendar_mapping } @@ -13,14 +12,12 @@ const event_calendar_mapping: Map<uid, string> = new Map; declare global { interface Window { vcal_objects: Map<uid, VEvent>; + VIEW: 'month' | 'week'; + EDIT_MODE: boolean; } } window.vcal_objects = vcal_objects; -declare let VIEW: 'month' | 'week' -declare let EDIT_MODE: boolean - - function find_block(uid: uid): HTMLElement | null { let obj = vcal_objects.get(uid) if (obj === undefined) { |