diff options
author | Grant Shangreaux <grant@unabridgedsoftware.com> | 2020-12-29 12:40:21 -0600 |
---|---|---|
committer | Grant Shangreaux <grant@unabridgedsoftware.com> | 2020-12-29 12:40:21 -0600 |
commit | 6698f95f92d4adbd06a9dc302b4ccbe77bb760be (patch) | |
tree | dc112993f907f8d0eb0756d22c8b56ba75939e75 | |
parent | 0b4f9b035fcf204b8ce65076b84f55e297fa909b (diff) | |
download | emacsconf-wiki-6698f95f92d4adbd06a9dc302b4ccbe77bb760be.tar.xz emacsconf-wiki-6698f95f92d4adbd06a9dc302b4ccbe77bb760be.zip |
Fix: bind callback properly (i hope)
Diffstat (limited to '')
-rw-r--r-- | templates/page.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/page.tmpl b/templates/page.tmpl index f380dc8d..b71d7d19 100644 --- a/templates/page.tmpl +++ b/templates/page.tmpl @@ -62,7 +62,9 @@ seconds = parseSeconds(timestamps[i].innerText); console.log("seconds: ", seconds); - timestamps[i].onclick = () => { seekToTime(seconds) }; + timestamps[i].onclick = function () { + seekToTime(this.innerText) + }; } } </script> |