From 16091fbfa64dca43f442d315a576f42f652d41fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 30 Jul 2020 21:04:36 +0200 Subject: Start embedding more data for css and js in the html doc. --- static/script.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'static/script.js') diff --git a/static/script.js b/static/script.js index 7397dade..d3526849 100644 --- a/static/script.js +++ b/static/script.js @@ -442,7 +442,7 @@ window.onload = function () { window.setInterval(update_current_time_bar, 1000 * 60) /* Is event creation active? */ - if (true) { + if (EDIT_MODE) { let eventCreator = new EventCreator; for (let c of document.getElementsByClassName("events")) { c.onmousedown = eventCreator.create_event_down(c); @@ -646,8 +646,6 @@ function bind_properties (el, wide_event=false) { default: lst.push([s, (s, v) => s.innerHTML = v]); } - /* TODO the icalendar data is only here when we have edit mode entabled. - Either always include it, or find the default value some other way */ el.properties["_value_" + field] = s.innerHTML; } -- cgit v1.2.3