Merge branch 'fancybox-list' into dev

This commit is contained in:
Théo Marchal 2021-02-14 00:54:39 +01:00
commit 7126678bac

View File

@ -446,7 +446,12 @@ jQuery(document).ready(function($)
else else
result += '<td>&nbsp;</td>' result += '<td>&nbsp;</td>'
result += '<td><a href="painting.html?number=' + i.number + '"><img src="styles/icons/eye.svg" alt="Voir"></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>"; result += "</tr>";
$("table").append(result); $("table").append(result);
@ -513,7 +518,7 @@ jQuery(document).ready(function($)
// fancybox configuration // fancybox configuration
$('[data-fancybox="exposition"]').fancybox( $('[data-fancybox="exposition"], [data-fancybox="exposition-list"]').fancybox(
{ {
infobar: false, infobar: false,
toolbar: true, toolbar: true,