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