diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-11-21 00:13:20 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-11-21 00:13:20 +0100 |
commit | 4a4c3e42151da7a83bd863d31d8ad5f8f4d07396 (patch) | |
tree | 84a91b007d75979c102bdbc35ac8c7a721f75cb3 /static/clock.js | |
parent | Merge branch 'edit-rrule' into js (diff) | |
download | calp-4a4c3e42151da7a83bd863d31d8ad5f8f4d07396.tar.gz calp-4a4c3e42151da7a83bd863d31d8ad5f8f4d07396.tar.xz |
Further work on breakout and rrule.
Diffstat (limited to 'static/clock.js')
-rw-r--r-- | static/clock.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/static/clock.js b/static/clock.js index badfd1db..40382faa 100644 --- a/static/clock.js +++ b/static/clock.js @@ -45,14 +45,14 @@ class SmallcalCellHighlight extends Clock { } update(now) { - if (current_cell) { - current_cell.style.border = ""; + if (this.current_cell) { + this.current_cell.style.border = ""; } - current_cell = this.small_cal.querySelector( + this.current_cell = this.small_cal.querySelector( "time[datetime='" + now.format("~Y-~m-~d") + "']"); - current_cell.style.border = "1px solid black"; + this.current_cell.style.border = "1px solid black"; } } @@ -65,6 +65,6 @@ class ButtonUpdater extends Clock { } update(now) { - this.proc(e, now); + this.proc(this.el, now); } } |