From: Benoît Pin Date: Thu, 10 Jul 2014 11:01:00 +0000 (+0200) Subject: Ok pour Chrome et Safari. X-Git-Url: https://scm.cri.mines-paristech.fr/git/Portfolio.git/commitdiff_plain/e0660307a6fa16a363722bcf06f74bb9f53e1d30?ds=inline;hp=-c Ok pour Chrome et Safari. --- e0660307a6fa16a363722bcf06f74bb9f53e1d30 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