From 4f28cd0f4ccb446c3cdeadcd4d56e681ca38e70c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= Date: Sun, 29 Jun 2014 10:46:02 +0200 Subject: [PATCH 1/1] Renommage des variables backToContextUrl et lastBcUrl qui sont automatiquement mis en lowercases. --- skins/photo_film_viewer.js | 4 ++-- skins/photo_view_ajax_template.pt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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">
-- 2.20.1