Fixed popover-links in popovers
authorMarcel Werk <burntime@woltlab.com>
Fri, 26 Aug 2016 14:02:18 +0000 (16:02 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 26 Aug 2016 14:02:24 +0000 (16:02 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Controller/Popover.js

index 9434bf12bcb5f00f71f5e72503264c24f9983fb5..927a601010d306a356423b86b344855d4f3cc4f0 100644 (file)
@@ -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) {