From 37e1ca0c7ef369bf2a9ecd02fb9104e9e4d499b5 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 26 Aug 2016 16:02:18 +0200 Subject: [PATCH] Fixed popover-links in popovers --- .../files/js/WoltLabSuite/Core/Controller/Popover.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js index 9434bf12bc..927a601010 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js @@ -155,6 +155,14 @@ define(['Ajax', 'Dictionary', 'Environment', 'Dom/ChangeListener', 'Dom/Util', ' if (_cache.has(id)) { return; } + // skip if element is in a popover + if (element.closest('.popover') !== null) { + _cache.set(id, { + content: null, + state: STATE_NONE + }); + return; + } var objectId = (options.legacy) ? id : ~~element.getAttribute(options.attributeName); if (objectId === 0) { -- 2.20.1