From 0f68a47403884f575a1112ca0c790f37bfc0fc18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 24 Apr 2022 01:14:01 +0200 Subject: Dead code removal. --- static/script.ts | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'static/script.ts') 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 */ -- cgit v1.2.3