From 54c613f48caa01f05fac2774dc2d2253568b552e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 11 Aug 2020 20:17:25 +0200 Subject: Add dropdown editing event. --- static/script.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'static/script.js') diff --git a/static/script.js b/static/script.js index cc647b77..0385ac5a 100644 --- a/static/script.js +++ b/static/script.js @@ -501,6 +501,11 @@ function place_in_edit_mode (event) { description.replaceWith(textarea); } + /* ---------------------------------------- */ + + let evtext = popup.getElementsByClassName('eventtext')[0] + let calendar_dropdown = document.getElementById('calendar-dropdown-template').firstChild.cloneNode(true); + evtext.prepend(calendar_dropdown); /* ---------------------------------------- */ -- cgit v1.2.3