summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorGrant Shangreaux <grant@unabridgedsoftware.com>2020-12-29 12:40:21 -0600
committerGrant Shangreaux <grant@unabridgedsoftware.com>2020-12-29 12:40:21 -0600
commit6698f95f92d4adbd06a9dc302b4ccbe77bb760be (patch)
treedc112993f907f8d0eb0756d22c8b56ba75939e75 /templates
parent0b4f9b035fcf204b8ce65076b84f55e297fa909b (diff)
downloademacsconf-wiki-6698f95f92d4adbd06a9dc302b4ccbe77bb760be.tar.xz
emacsconf-wiki-6698f95f92d4adbd06a9dc302b4ccbe77bb760be.zip
Fix: bind callback properly (i hope)
Diffstat (limited to 'templates')
-rw-r--r--templates/page.tmpl4
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>