Bugfix : chargement du script d'upload seulement si autorisé.
[Portfolio.git] / skins / photo_layout_macros.pt
index b9f63c5..c895466 100644 (file)
@@ -86,7 +86,9 @@
       </div>
       <br clear="all"/>
       <div metal:use-macro="here/batch_macros/macros/navigation">batch navigation</div>
       </div>
       <br clear="all"/>
       <div metal:use-macro="here/batch_macros/macros/navigation">batch navigation</div>
-      <script type="text/javascript" tal:content="python:'''
+      <script type="text/javascript"
+              tal:condition="dropable"
+              tal:content="python:'''
       (function(){
         var lb = document.getElementById('lightbox');
         var uploadUrl = absolute_url() + '/put_upload';
       (function(){
         var lb = document.getElementById('lightbox');
         var uploadUrl = absolute_url() + '/put_upload';