on master help sign in
Migrating to title attr
commite84189fa42134449870a18edf303e9847e116048 authorMatilde Park <matilde@park.computer> dateTue 6 Aug 2019, 13:19 (7 years ago) parent622fdea
1 file changed+7−1
static/scripts.js+7−1
static/scripts.js+7−1
@@ -342,5 +342,11 @@ let docsNavScroll = function() {
342342
343343if (window.location.href.includes("docs")) {
344344 docsNavScroll();
345− tippy('.tooltip')
345+ tippy('.tooltip', {
346+ content(reference) {
347+ const title = reference.getAttribute('title')
348+ reference.removeAttribute('title')
349+ return title
350+ }
351+ })
346352}