X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/de068d5b8a1fd46a70f75f4e20e581ee846f866d..522ae82bd3a30e30ed50c444fd93164479a8e051:/skins/photo_theme/folder_contents_macros.pt

diff --git a/skins/photo_theme/folder_contents_macros.pt b/skins/photo_theme/folder_contents_macros.pt
index 00d2ee9..7d25a02 100644
--- a/skins/photo_theme/folder_contents_macros.pt
+++ b/skins/photo_theme/folder_contents_macros.pt
@@ -39,7 +39,7 @@
 				</tr>
 			</thead>
 			<tbody id="FolderListingBody">
-<tbody tal:repeat="item_info listItemInfos" tal:omit-tag="">
+<tbody tal:repeat="item_info listItemInfos" tal:omit-tag="" metal:define-macro="itemListing">
 		    <tr class="" tal:attributes="class python: (even and 'even') or 'odd'" tal:define="even repeat/item_info/even">
 		      <td><img src="." alt="lock" height="16" width="16" border="0"
 		               tal:condition="python:not isAnon and item_info['lock']"
@@ -77,7 +77,7 @@
       <span metal:use-macro="here/batch_macros/macros/navigation">batch navigation</span>
     </div>
 		<script type="text/javascript">
-		//<!--
+		(function(){
 			// variables for drag-and-drop ordered support
 			var ddEnabled = false
 			try {
@@ -110,8 +110,11 @@
 				addListener(topNavBatchBar, "click", loadListing);
 				addListener(bottomNavBatchBar, "click", loadListing);
 			}
+			
+			var uploadUrl = absolute_url() + '/put_upload';
+      new DDFolderUploader(document.getElementById('ForematterCell'), uploadUrl, listing);
 
-		//-->
+		}());
 		</script>
   </body>