From: Marcel Werk Date: Fri, 26 Aug 2016 14:02:18 +0000 (+0200) Subject: Fixed popover-links in popovers X-Git-Tag: 3.0.0_Beta_1~476 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=37e1ca0c7ef369bf2a9ecd02fb9104e9e4d499b5;p=GitHub%2FWoltLab%2FWCF.git Fixed popover-links in popovers --- 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) {