From a57a90cc380258c328026ea3511771b2fe7c3770 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 30 Jan 2020 12:02:33 +0300 Subject: [PATCH] feat(admin-plugin): fix dropdown logic #211 --- site/plugins/admin/templates/partials/modules/tippy.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/plugins/admin/templates/partials/modules/tippy.html b/site/plugins/admin/templates/partials/modules/tippy.html index 04cd41fe..fff8c31a 100644 --- a/site/plugins/admin/templates/partials/modules/tippy.html +++ b/site/plugins/admin/templates/partials/modules/tippy.html @@ -12,6 +12,8 @@ trigger: 'click', maxWidth: 500, zIndex: 10, - content: $('.js-dropdown-btn').siblings().html() + content(reference) { + return document.getElementById(reference.getAttribute('data-dropdown')).innerHTML; + } }); \ No newline at end of file