aboutsummaryrefslogtreecommitdiff
path: root/static/script.js
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-04-27 18:08:06 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-04-27 18:11:16 +0200
commit6aa69f38b392c121c415208509814d324800aebc (patch)
tree579cd4bfcd5e2be7e183896330028b56060215dc /static/script.js
parentMinor updates. (diff)
downloadcalp-6aa69f38b392c121c415208509814d324800aebc.tar.gz
calp-6aa69f38b392c121c415208509814d324800aebc.tar.xz
Replace code for small calendar.
Diffstat (limited to '')
-rw-r--r--static/script.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/script.js b/static/script.js
index 7cd99bef..c7361a8a 100644
--- a/static/script.js
+++ b/static/script.js
@@ -116,7 +116,8 @@ function update_current_time_bar () {
if (current_cell) {
current_cell.style.border = "";
}
- current_cell = document.getElementById("td-" + time_to_date(now))
+ current_cell = document.querySelector(
+ ".small-calendar time[datetime='" + time_to_date(now) + "']");
current_cell.style.border = "1px solid black";
}