diff options
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); } } |