diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-27 18:08:06 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-04-27 18:11:16 +0200 |
commit | 6aa69f38b392c121c415208509814d324800aebc (patch) | |
tree | 579cd4bfcd5e2be7e183896330028b56060215dc /static/script.js | |
parent | Minor updates. (diff) | |
download | calp-6aa69f38b392c121c415208509814d324800aebc.tar.gz calp-6aa69f38b392c121c415208509814d324800aebc.tar.xz |
Replace code for small calendar.
Diffstat (limited to '')
-rw-r--r-- | static/script.js | 3 |
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"; } |