X-Git-Url: https://svn.cri.ensmp.fr/git/Plinn.git/blobdiff_plain/a8f0edf22418e87346d8561e5e5904dc262acbdd..3f727ea05aae7e2b69274046075b4d13feba2223:/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 bd8e7f5..b359ad3 100644 --- a/skins/photo_theme/folder_contents_macros.pt +++ b/skins/photo_theme/folder_contents_macros.pt @@ -16,7 +16,7 @@
Folder url for script - first batch item position + first batch item position
@@ -39,7 +39,7 @@ - + lock 2001 - - 1 - @@ -91,11 +88,7 @@ var listing = document.getElementById("FolderListingBody"); if (ddEnabled) { - var rows = listing.getElementsByTagName("TR") - for ( var i = 0 ; i < rows.length ; i++ ) - rows[i].pos = i + firstItemPos; - - var fDDcontroler = new FolderDDropControler(listing); + var fDDcontroler = new FolderDDropControler(listing, firstItemPos); var topNavBatchBar = document.getElementById("topNavBatchBar"); var bottomNavBatchBar = document.getElementById("bottomNavBatchBar"); if (topNavBatchBar && bottomNavBatchBar) { @@ -112,7 +105,7 @@ } var uploadUrl = absolute_url() + '/put_upload'; - // new DDFolderUploader(document.getElementById('ForematterCell'), uploadUrl, listing); + new DDFolderUploader(document.getElementById('ForematterCell'), uploadUrl, listing); }());