aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/script.js4
-rw-r--r--static/style.css7
2 files changed, 1 insertions, 10 deletions
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;
}
diff --git a/static/style.css b/static/style.css
index 36f1a0c3..793ed366 100644
--- a/static/style.css
+++ b/static/style.css
@@ -1,12 +1,5 @@
html {
height: 100%;
- /* TODO
- * get the default values from the code.
- */
- --editmode: 1.0;
- --event-font-size: 8pt;
- --gray: #757575;
- --btn-height: 0.5ex;
}
html, body {