aboutsummaryrefslogtreecommitdiff
path: root/tools/template.html
diff options
context:
space:
mode:
authorZhiming Wang <github@zmwang.pw>2018-10-02 01:18:52 -0400
committerJohn MacFarlane <jgm@berkeley.edu>2018-10-01 22:18:52 -0700
commit04b3fdede574c59aefed90cb6cbb7a42d4a7332d (patch)
treefa4b994b189cc77342813a45500eec128af6000b /tools/template.html
parent0d329a9e8f8071d4dca5a00e3e46b83e9194b760 (diff)
Fix dingus link when double clicking Markdown code (#535)
Prior to this commit, the link opened is always `/dingus/?text=` (no text), because `$(this)` is `code.language-markdown`, so `.find`ing `code` in its descendants turns up nothing.
Diffstat (limited to 'tools/template.html')
-rw-r--r--tools/template.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/template.html b/tools/template.html
index 2bc32c0..05a471a 100644
--- a/tools/template.html
+++ b/tools/template.html
@@ -108,7 +108,7 @@ $$(document).ready(function() {
});
});
$$("code.language-markdown").dblclick(function(e) { window.open('/dingus/?text=' +
- encodeURIComponent($$(this).find('code').text()));
+ encodeURIComponent($$(this).text()));
});
});
</script>