diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-13 01:49:17 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-13 01:49:17 +0200 |
commit | a8df6d53a53e34c289154fa0e24226c6d7080f18 (patch) | |
tree | c61a7e4d432a5f5e45cad03c7e75f7ab57b2ecee /static/script.js | |
parent | Fix popup movement. (diff) | |
download | calp-a8df6d53a53e34c289154fa0e24226c6d7080f18.tar.gz calp-a8df6d53a53e34c289154fa0e24226c6d7080f18.tar.xz |
Minor cleanup.
Diffstat (limited to 'static/script.js')
-rw-r--r-- | static/script.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/script.js b/static/script.js index 8a314bb9..c9934f42 100644 --- a/static/script.js +++ b/static/script.js @@ -315,7 +315,6 @@ window.onload = function () { c.onmouseup = create_event_finisher( function (event) { let popupElement = event.querySelector(".popup-container"); - /* TODO ensure input elements */ open_popup(popupElement); popupElement.querySelector("input[name='dtstart']").focus(); @@ -326,6 +325,7 @@ window.onload = function () { for (let nav of document.getElementsByClassName("popup-control")) { nav.onmousedown = function (e) { + /* Ignore mousedown on children */ if (e.target != nav) return; nav.style.cursor = "grabbing"; nav.dataset.grabbed = "true"; |