aboutsummaryrefslogtreecommitdiff
path: root/static/script.ts
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-04-24 01:14:01 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-04-24 01:14:01 +0200
commit0f68a47403884f575a1112ca0c790f37bfc0fc18 (patch)
treefed45c8bdb70f415926564138abb9a31466ce1a3 /static/script.ts
parentIntroduce component date-jump. (diff)
downloadcalp-0f68a47403884f575a1112ca0c790f37bfc0fc18.tar.gz
calp-0f68a47403884f575a1112ca0c790f37bfc0fc18.tar.xz
Dead code removal.
Diffstat (limited to 'static/script.ts')
-rw-r--r--static/script.ts37
1 files changed, 0 insertions, 37 deletions
diff --git a/static/script.ts b/static/script.ts
index 865c005e..650a5aa0 100644
--- a/static/script.ts
+++ b/static/script.ts
@@ -1,6 +1,5 @@
import { VEvent, xml_to_vcal } from './vevent'
import { SmallcalCellHighlight, Timebar } from './clock'
-import { makeElement } from './lib'
import { vcal_objects, event_calendar_mapping } from './globals'
import { EventCreator } from './event-creator'
import { PopupElement, setup_popup_element } from './components/popup-element'
@@ -111,20 +110,6 @@ window.addEventListener('load', function() {
the whole page scroll there.
*/
el.parentElement!.removeAttribute("href");
-
- let popup = document.getElementById("popup" + el.id);
- // popup.getElementsByClassName("edit-form")[0].onsubmit = function () {
- // create_event(el);
- // return false; /* stop default */
- // }
-
- /* Bind all vcomponent properties into javascript. */
- // if (el.closest(".longevents")) {
- // new VComponent(el, true);
- // } else {
- // new VComponent(el, false);
- // }
-
}
document.onkeydown = function(evt) {
@@ -139,28 +124,6 @@ window.addEventListener('load', function() {
/* ---------------------------------------- */
- /* needs to be called AFTER bind_properties, but BEFORE init_input_list
- After bind_properties since that initializes categories to a possible field
- Before init_input_list since we need this listener to be propagated to clones.
- [CATEGORIES_BIND]
- */
- // TODO fix this
- // for (let lst of document.querySelectorAll(".input-list[data-property='categories']")) {
- // let f = function() {
- // console.log(lst, lst.closest('.popup-container'));
- // let event = event_from_popup(lst.closest('.popup-container'))
- // event.properties.categories = lst.get_value();
- // };
-
- // for (let inp of lst.querySelectorAll('input')) {
- // inp.addEventListener('input', f);
- // }
- // }
-
- // init_arbitary_kv();
-
- // init_input_list();
-
document.addEventListener('keydown', function(event) {
/* Physical key position, names are what that key would
be in QWERTY */