bugfixes / mise au point.
authorBenoît Pin <pin@cri.ensmp.fr>
Thu, 10 Jul 2014 12:18:37 +0000 (14:18 +0200)
committerBenoît Pin <pin@cri.ensmp.fr>
Thu, 10 Jul 2014 12:18:37 +0000 (14:18 +0200)
skins/getPhotosInfos.py
skins/photo_lightbox_viewer.js

index c5b00a7..3a55dcc 100755 (executable)
@@ -29,7 +29,7 @@ contentFilter = {'portal_type' : ['Photo'],
                  'sort_on' : sort_on,
                  'sort_order' : sort_order}
 batch = Batch(portfolio.listCatalogedContents(contentFilter=contentFilter),
-              batch_size, pho_start, orphan=5, quantumleap=1, b_start_str='pho_start')
+              batch_size, pho_start, quantumleap=1, b_start_str='pho_start')
 
 
 infos = []
index a4c9a25..c030fbb 100644 (file)
@@ -338,10 +338,14 @@ Lightbox.prototype.refreshGrid = function() {
 Lightbox.prototype._refreshGrid = function(req) {
        var doc = req.responseXML.documentElement;
        var i, node;
+       var j = 0;
        for (i=0 ; i<doc.childNodes.length ; i++) {
                node = doc.childNodes[i];
                if (node.nodeType === 1) {
-                       this.slides[i] = this.grid.replaceChild(getCopyOfNode(node), this.slides[i]);
+                       node = getCopyOfNode(node);
+                       this.grid.replaceChild(node, this.slides[j]);
+                       this.slides[j] = node;
+                       j++;
                }
        }
        this.cbIndex = undefined;