From b391396fcff462badadf41d3c69c9c3a92525985 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 26 Aug 2016 16:47:49 +0200 Subject: [PATCH] Fixed imageviewer-links in popovers --- wcfsetup/install/files/js/WCF.ImageViewer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.ImageViewer.js b/wcfsetup/install/files/js/WCF.ImageViewer.js index a1443db87d..abb400f05b 100644 --- a/wcfsetup/install/files/js/WCF.ImageViewer.js +++ b/wcfsetup/install/files/js/WCF.ImageViewer.js @@ -55,6 +55,8 @@ WCF.ImageViewer = Class.extend({ _click: function(event) { event.preventDefault(); event.stopPropagation(); + // skip if element is in a popover + if ($(event.currentTarget).closest('.popover').length) return; this._triggerElement.wcfImageViewer('open', null, $(event.currentTarget).wcfIdentify()); }, -- 2.20.1