Renommage des variables backToContextUrl et lastBcUrl qui sont automatiquement mis...
authorBenoît Pin <benoit.pin@gmail.com>
Sun, 29 Jun 2014 08:46:02 +0000 (10:46 +0200)
committerBenoît Pin <benoit.pin@gmail.com>
Sun, 29 Jun 2014 08:46:02 +0000 (10:46 +0200)
skins/photo_film_viewer.js
skins/photo_view_ajax_template.pt

index ddd73e1..226e6dd 100644 (file)
@@ -604,13 +604,13 @@ FilmSlider.prototype.populateViewer = function(req) {
                                break;
                        case 'imageattributes' :
                                var link = this.buttons.back_to_portfolio.parentNode;
                                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');
                                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;
                }
                                                                           element.getAttribute('img_id'));
                                break;
                }
index d4c2b6c..9cb60a2 100644 (file)
@@ -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;
            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:&lt;![CDATA[" />
                                    img_id imgId;
                                    buyable options/buyable"/>
   <fragment id="image_metadata"><span tal:replace="structure string:&lt;![CDATA[" />