X-Git-Url: https://scm.cri.ensmp.fr/git/Portfolio.git/blobdiff_plain/42326bd00929e6b3bae3c8f0618d5073852282b6..5e9d5a6ac7b22dbb732acd070728ae8e079ac2ff:/skins/photo_lightbox_viewer.js diff --git a/skins/photo_lightbox_viewer.js b/skins/photo_lightbox_viewer.js index c649dc2..8dfbaf4 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; @@ -374,7 +375,9 @@ Lightbox.prototype.fetchTail = function() { var url = absolute_url() + '/portfolio_thumbnails_tail?start:int=' + String(this.slides.length) + - '&size:int=10'; + '&size:int=10' + + '&container_type=' + + this.container_type; req.open('GET', url, true); req.send(); };