From 4a4c3e42151da7a83bd863d31d8ad5f8f4d07396 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sat, 21 Nov 2020 00:13:20 +0100 Subject: Further work on breakout and rrule. --- static/clock.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'static/clock.js') 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); } } -- cgit v1.2.3