From 50bc53290e5047c4e47efc9787bbec9417ef0210 Mon Sep 17 00:00:00 2001 From: Quentin Decaunes Date: Sat, 1 Jun 2019 15:58:00 +0200 Subject: [PATCH] Moved tooltips to a better place. --- js/methods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/methods.js b/js/methods.js index 9db123d..69c331c 100644 --- a/js/methods.js +++ b/js/methods.js @@ -323,7 +323,7 @@ function displayOptionDescription() { for (const option in options_description) { if (options_description.hasOwnProperty(option)) { const description = options_description[option]; - const node = document.getElementById(option).parentElement.parentElement; + const node = document.getElementById(option).parentElement.parentElement.previousElementSibling; node.setAttribute('uk-tooltip', description); UIkit.tooltip(node); }