diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-15 00:47:37 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2021-11-15 00:47:37 +0100 |
commit | b0170d8cbb14a05d791ae5560c6e15da3fabfd7a (patch) | |
tree | b5a869663352d0abcd07a397239b97da92a49323 /static | |
parent | Rework some drawing and how calendar is accessed. (diff) | |
download | calp-b0170d8cbb14a05d791ae5560c6e15da3fabfd7a.tar.gz calp-b0170d8cbb14a05d791ae5560c6e15da3fabfd7a.tar.xz |
cleanup
Diffstat (limited to 'static')
-rw-r--r-- | static/.gitignore | 3 | ||||
-rw-r--r-- | static/script.ts | 18 | ||||
-rw-r--r-- | static/style.scss | 2 | ||||
-rw-r--r-- | static/vevent.ts | 3 |
4 files changed, 7 insertions, 19 deletions
diff --git a/static/.gitignore b/static/.gitignore index 9e9b559e..78268647 100644 --- a/static/.gitignore +++ b/static/.gitignore @@ -13,3 +13,6 @@ types.js vevent.js *.out.js node_modules +elements.js +event-creator.js +deps.svg diff --git a/static/script.ts b/static/script.ts index 2a339e77..21cb8302 100644 --- a/static/script.ts +++ b/static/script.ts @@ -40,24 +40,6 @@ window.addEventListener('load', function() { } } - /* - - .popup - - .block - - .list - */ - /* - let vevent_els = document.getElementsByClassName('vevent') - for (let el of vevent_els) { - try { - vcal_objects[el.dataset.uid].register(el); - } catch { - console.error("Invalid something, uid = ", el.dataset.uid, - "el = ", el - ); - } - } - */ - initialize_components(); diff --git a/static/style.scss b/static/style.scss index 4c645ff7..9833a77a 100644 --- a/static/style.scss +++ b/static/style.scss @@ -568,6 +568,8 @@ vevent-block, .event { &.generated { opacity: 40%; + /* TODO only disable transitions for top/botom, and only + * when dragging (not when updating through other means) */ transition: none; } diff --git a/static/vevent.ts b/static/vevent.ts index 4f47f8e3..307c572f 100644 --- a/static/vevent.ts +++ b/static/vevent.ts @@ -236,7 +236,8 @@ function xml_to_vcal(xml: Element): VEvent { let property_map = new Map() if (properties) { - property_loop: for (var i = 0; i < properties.childElementCount; i++) { + property_loop: + for (var i = 0; i < properties.childElementCount; i++) { let tag = properties.childNodes[i]; if (!(tag instanceof Element)) continue; let parameters = {}; |