From: Benoît Pin Date: Sun, 29 Jun 2014 08:46:02 +0000 (+0200) Subject: Renommage des variables backToContextUrl et lastBcUrl qui sont automatiquement mis... X-Git-Url: https://scm.cri.mines-paristech.fr/git/Portfolio.git/commitdiff_plain/4f28cd0f4ccb446c3cdeadcd4d56e681ca38e70c Renommage des variables backToContextUrl et lastBcUrl qui sont automatiquement mis en lowercases. --- diff --git a/skins/photo_film_viewer.js b/skins/photo_film_viewer.js index ddd73e1..226e6dd 100644 --- a/skins/photo_film_viewer.js +++ b/skins/photo_film_viewer.js @@ -604,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; } diff --git a/skins/photo_view_ajax_template.pt b/skins/photo_view_ajax_template.pt index d4c2b6c..9cb60a2 100644 --- a/skins/photo_view_ajax_template.pt +++ b/skins/photo_view_ajax_template.pt @@ -7,8 +7,8 @@ xmlns:metal="http://xml.zope.org/namespaces/metal">