From a8df6d53a53e34c289154fa0e24226c6d7080f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 13 Jul 2020 01:49:17 +0200 Subject: Minor cleanup. --- static/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static/script.js') 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"; -- cgit v1.2.3