Skip to content
Snippets Groups Projects
Commit 749b58d3 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'dcoded-dev' into 'pregmod-master'

Replace link.title with tippyJS

See merge request pregmodfan/fc-pregmod!9511
parents 62b04207 ce107190
No related branches found
No related tags found
No related merge requests found
......@@ -79,13 +79,17 @@ App.UI.DOM.link = function(linkText, handler, args = [], passage = "", tooltip =
const hArgs = Array.isArray(args) ? args : [args];
const link = document.createElement("a");
link.textContent = linkText;
link.title = tooltip;
link.onclick = () => {
handler(...hArgs);
if (passage !== '') {
SugarCube.Engine.play(passage);
}
};
tippy(link, {
content: tooltip,
});
return link;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment