aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/script.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/static/script.js b/static/script.js
index 0f9dace9..6870819b 100644
--- a/static/script.js
+++ b/static/script.js
@@ -328,6 +328,8 @@ function place_in_edit_mode (event) {
required: true,
onchange: function (e) {
+ /* Only update datetime when the input is filled out */
+ if (! this.value) return;
let [hour, minute] = this.value.split(":").map(Number);
/* retain the year, month, and day information */
let d = copyDate(event.properties[fieldname]);