Activation de l’upload par glisser / déposer que si permission d’ajouter.
[Plinn.git] / skins / photo_theme / folder_contents_macros.pt
index a9d046a..98177ba 100644 (file)
                                addListener(topNavBatchBar, "click", loadListing);
                                addListener(bottomNavBatchBar, "click", loadListing);
                        }
+
+               }());
+    </script>
+    <script type="text/javascript" tal:condition="options/form/items_add_allowed">
+               (function(){
                        // upload by drag and drop
                        var uploadUrl = absolute_url() + '/put_upload';
-                       new DDFolderUploader(document.getElementById('ForematterCell'), uploadUrl, listing);
-
+                       new DDFolderUploader(document.getElementById('ForematterCell'), uploadUrl, document.getElementById("FolderListingBody"));
                }());
     </script>
   </body>