X-Git-Url: https://svn.cri.ensmp.fr/git/Portfolio.git/blobdiff_plain/605ba00317f24d9e86d7768db0bfa3bce326b00b..42f8aecd3f2b63a3929bb3a0baf420c6bd47b05f:/skins/photo_lightbox_viewer.js?ds=inline diff --git a/skins/photo_lightbox_viewer.js b/skins/photo_lightbox_viewer.js index 23f6f77..bb27a67 100644 --- a/skins/photo_lightbox_viewer.js +++ b/skins/photo_lightbox_viewer.js @@ -11,12 +11,13 @@ var Lightbox; var reSelected = /.*selected.*/; -Lightbox = function(grid, toolbar, complete) { +Lightbox = function(grid, toolbar, complete, container_type) { var self = this; this.grid = grid; this._buildSlidesIndex(); // set this.slides and this.lastSlide; this.fetchingDisabled = false; this.complete = complete; + this.container_type = container_type; this.toolbar = toolbar; if (toolbar) { this.toolbarFixed = false; @@ -199,6 +200,9 @@ Lightbox.prototype.onResponseLoad = function(req) { this.fm.submitButton = undefined; this.refreshGrid(); break; + default : + this.fm.loadResponse(req); + break; } }; @@ -373,8 +377,10 @@ Lightbox.prototype.fetchTail = function() { var url = absolute_url() + '/portfolio_thumbnails_tail?start:int=' + - String(this.slides.length + 1 ) + - '&size:int=10'; + String(this.slides.length) + + '&size:int=10' + + '&container_type=' + + this.container_type; req.open('GET', url, true); req.send(); };