From e0660307a6fa16a363722bcf06f74bb9f53e1d30 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Thu, 10 Jul 2014 13:01:00 +0200 Subject: [PATCH 1/1] Ok pour Chrome et Safari. --- skins/photo_lightbox_viewer.js | 35 +++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/skins/photo_lightbox_viewer.js b/skins/photo_lightbox_viewer.js index d659ac1..cf39a0a 100644 --- a/skins/photo_lightbox_viewer.js +++ b/skins/photo_lightbox_viewer.js @@ -14,7 +14,15 @@ var reSelected = /.*selected.*/; Lightbox = function(grid, toolbar, complete) { var self = this; this.grid = grid; - this.lastSlide = this.grid.children[this.grid.children.length-1]; + this.slides = []; + var node, i; + for (i=0 ; i