From 4f28cd0f4ccb446c3cdeadcd4d56e681ca38e70c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= <benoit.pin@gmail.com> 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"> <div metal:use-macro="here/main_template_macros/macros/global_defines" tal:omit-tag=""/> <imageattributes tal:attributes="alt here/Title; - backToContextUrl options/backToContextUrl; - lastBcUrl options/lastBcUrl; + back_to_context_url options/backToContextUrl; + last_bc_url options/lastBcUrl; img_id imgId; buyable options/buyable"/> <fragment id="image_metadata"><span tal:replace="structure string:<![CDATA[" /> -- 2.20.1