mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fix #1329 -- Fix image lightbox for products with variations
This commit is contained in:
@@ -6,7 +6,7 @@ $(function () {
|
|||||||
var isOpera = Object.prototype.toString.call(window.opera) == '[object Opera]';
|
var isOpera = Object.prototype.toString.call(window.opera) == '[object Opera]';
|
||||||
|
|
||||||
$("details summary, details summary a[data-toggle=variations]").click(function (e) {
|
$("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;
|
return true;
|
||||||
}
|
}
|
||||||
var $details = $(this).closest("details");
|
var $details = $(this).closest("details");
|
||||||
|
|||||||
Reference in New Issue
Block a user