En fait, on a déjà l’index de position des éléments – sauf qu’il était créé en dehors...
[Plinn.git] / skins / photo_theme / folder_contents_macros.pt
index 7d25a02..c2c3780 100644 (file)
                        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) {