X-Git-Url: https://scm.cri.ensmp.fr/git/Portfolio.git/blobdiff_plain/572f5798d7d6d3e73cffe0bfabd6e85542fde43f..88f9f2dde90223a13f97e2787e342b389457064e:/skins/photo_film_viewer.js diff --git a/skins/photo_film_viewer.js b/skins/photo_film_viewer.js index 5ba1b5b..226e6dd 100644 --- a/skins/photo_film_viewer.js +++ b/skins/photo_film_viewer.js @@ -136,7 +136,8 @@ FilmSlider.prototype._checkSizeStability = function(evt) { } } clearInterval(this._checkSizeIntervalId); - delete this._barSizes, this._checkSizeIntervalId; + delete this._barSizes; + delete this._checkSizeIntervalId; }; FilmSlider.prototype.fitToScreen = function(evt) { @@ -603,13 +604,13 @@ FilmSlider.prototype.populateViewer = function(req) { break; case 'imageattributes' : var link = this.buttons.back_to_portfolio.parentNode; - link.href = element.getAttribute('backToContextUrl'); + link.href = element.getAttribute('back_to_context_url'); link = this.buttons.show_buyable.parentNode; var buyable = element.getAttribute('buyable'); if(buyable === 'True') { link.className = null; } else if(buyable === 'False') { link.className = 'hidden'; } this.image.alt = element.getAttribute('alt'); - this.updateBreadcrumbs(element.getAttribute('lastBcUrl'), + this.updateBreadcrumbs(element.getAttribute('last_bc_url'), element.getAttribute('img_id')); break; }