From 78c2f5767921196d3085a0562f8f6f41ddc90c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Wed, 25 Apr 2018 23:24:30 +0200 Subject: [PATCH] Fixed parentIssue --- server/public/assets/js/frontpage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/public/assets/js/frontpage.js b/server/public/assets/js/frontpage.js index e6959278..b613d345 100755 --- a/server/public/assets/js/frontpage.js +++ b/server/public/assets/js/frontpage.js @@ -128,7 +128,7 @@ var Frontpage = { data[options_list[x]._id] = null; } if(document.querySelectorAll(".pin").length == 1 && !Helper.mobilecheck()) { - Helper.tooltip(document.querySelectorAll(".pin")[0].parent().parent().parent(), { + Helper.tooltip(document.querySelectorAll(".pin")[0].parentElement.parentElement.parentElement, { delay: 5, position: "top", html: "Featured playlist"