Fix cartel generation issue
Was preventing the ability to click on paintings
This commit is contained in:
parent
dae17821ad
commit
ab5710e69e
@ -16,9 +16,12 @@ function fancyboxInit(data, explorer)
|
||||
|
||||
caption: function(instance, item)
|
||||
{
|
||||
var idx = item.opts.fancyboxIndex - 1; // painting number
|
||||
if (item.opts.fancyboxIndex >= 1000)
|
||||
idx = item.opts.fancyboxIndex - 1000 + 383 - 1; // inédit: index starts at 1000 // 383: total number of paintings except inédit
|
||||
var idx = 0; // search the index of the painting of filtered data
|
||||
for (i = 0; i < data.length; i++)
|
||||
{
|
||||
if (data[i].number == item.opts.fancyboxIndex)
|
||||
idx = i;
|
||||
}
|
||||
|
||||
function generateCartel()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user