fancybox implemented in list

fixes #8
This commit is contained in:
Théo Marchal 2021-02-12 14:19:24 +01:00
parent 95f5de8e4d
commit 506a8758b9

View File

@ -446,7 +446,12 @@ jQuery(document).ready(function($)
else
result += '<td>&nbsp;</td>'
result += '<td><a href="painting.html?number=' + i.number + '"><img src="styles/icons/eye.svg"></a></td>';
result += '<td><a data-fancybox="exposition-list" href="';
if (i.photo == "none")
result += 'images/unknown.jpg';
else
result += 'photos/paintings/normal/' + i.number + '.jpg'
result += '" data-fancybox-index="' + i.number + '"><img src="styles/icons/eye.svg"></a></td>';
result += "</tr>";
$("table").append(result);
@ -513,7 +518,7 @@ jQuery(document).ready(function($)
// fancybox configuration
$('[data-fancybox="exposition"]').fancybox(
$('[data-fancybox="exposition"], [data-fancybox="exposition-list"]').fancybox(
{
infobar: false,
toolbar: true,