From 9c9b2f54e463753e5516303323c96eb9d8317f3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Benoi=CC=82t=20Pin?= <benoit.pin@gmail.com> Date: Mon, 7 Apr 2014 15:39:53 +0200 Subject: [PATCH] =?utf8?q?Bugfix=C2=A0:=20chargement=20du=20script=20d'upl?= =?utf8?q?oad=20seulement=20si=20autoris=C3=A9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- skins/photo_layout_macros.pt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skins/photo_layout_macros.pt b/skins/photo_layout_macros.pt index b9f63c5..c895466 100644 --- a/skins/photo_layout_macros.pt +++ b/skins/photo_layout_macros.pt @@ -86,7 +86,9 @@ </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'; -- 2.20.1