projects
/
Plinn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
diff --git
a/skins/photo_theme/folder_contents_macros.pt
b/skins/photo_theme/folder_contents_macros.pt
index
bd8e7f5
..
c2c3780
100644
(file)
--- 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">
</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']"
<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']"
@@
-91,11
+91,7
@@
var listing = document.getElementById("FolderListingBody");
if (ddEnabled) {
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) {
var topNavBatchBar = document.getElementById("topNavBatchBar");
var bottomNavBatchBar = document.getElementById("bottomNavBatchBar");
if (topNavBatchBar && bottomNavBatchBar) {
@@
-112,7
+108,7
@@
}
var uploadUrl = absolute_url() + '/put_upload';
}
var uploadUrl = absolute_url() + '/put_upload';
-
//
new DDFolderUploader(document.getElementById('ForematterCell'), uploadUrl, listing);
+ new DDFolderUploader(document.getElementById('ForematterCell'), uploadUrl, listing);
}());
</script>
}());
</script>