Fix #1329 -- Fix image lightbox for products with variations

This commit is contained in:
Raphael Michel
2019-07-05 16:58:39 +02:00
parent a5e94bf63f
commit 5180b5e48b

View File

@@ -6,7 +6,7 @@ $(function () {
var isOpera = Object.prototype.toString.call(window.opera) == '[object Opera]';
$("details summary, details summary a[data-toggle=variations]").click(function (e) {
if (this.tagName !== "A" && e.target.tagName === "A") {
if (this.tagName !== "A" && $(e.target).closest("a").length > 0) {
return true;
}
var $details = $(this).closest("details");