Commit cb08c873 authored by Christophe Dumez's avatar Christophe Dumez

- implemented getAllParentsIds() to make commit from popup menu work in some...

- implemented getAllParentsIds() to make commit from popup menu work in some cases it wasn't (removed file in a removed folder)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6875 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3d6b50ab
...@@ -154,8 +154,7 @@ print \'\'\'\n ...@@ -154,8 +154,7 @@ print \'\'\'\n
}\n }\n
}\n }\n
if(popup==1){\n if(popup==1){\n
//TODO\n filesPartiallyCheckedArray=tree.getAllParentsIds(tree.getSelectedItemId()).split(\',\');\n
filesPartiallyCheckedArray=[];\n
}else{\n }else{\n
filesPartiallyCheckedArray=tree.getAllPartiallyChecked().split(\',\');\n filesPartiallyCheckedArray=tree.getAllPartiallyChecked().split(\',\');\n
}\n }\n
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_EtagSupport__etag</string> </key> <key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts44161193.89</string> </value> <value> <string>ts45870562.28</string> </value>
</item> </item>
<item> <item>
<key> <string>__ac_local_roles__</string> </key> <key> <string>__ac_local_roles__</string> </key>
...@@ -34,9 +34,6 @@ ...@@ -34,9 +34,6 @@
<key> <string>data</string> </key> <key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
\n
\n
\n
function dhtmlXTreeObject(htmlObject,width,height,rootId){\n function dhtmlXTreeObject(htmlObject,width,height,rootId){\n
if(typeof(htmlObject)!="object")\n if(typeof(htmlObject)!="object")\n
this.parentObject=document.getElementById(htmlObject);\n this.parentObject=document.getElementById(htmlObject);\n
...@@ -1023,8 +1020,19 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n ...@@ -1023,8 +1020,19 @@ dhtmlXTreeObject.prototype._correctCheckStates=function(dhtmlObject){\n
return temp.parentObject.id;\n return temp.parentObject.id;\n
};\n };\n
\n \n
dhtmlXTreeObject.prototype.getAllParentsIds=function(itemId)\n
{\n
var temp=this._globalIdStorageFind(itemId);\n
if((!temp)||(!temp.parentObject))return "";\n
return this._getAllParentsIds(temp.parentObject.id, temp.parentObject.id);\n
};\n
\n \n
\n dhtmlXTreeObject.prototype._getAllParentsIds=function(itemId, id_list)\n
{\n
var temp=this._globalIdStorageFind(itemId);\n
if((!temp)||(!temp.parentObject))return id_list;\n
return this._getAllParentsIds(temp.parentObject.id, id_list+\',\'+temp.parentObject.id);\n
};\n
\n \n
dhtmlXTreeObject.prototype.changeItemId=function(itemId,newItemId)\n dhtmlXTreeObject.prototype.changeItemId=function(itemId,newItemId)\n
{\n {\n
...@@ -1987,16 +1995,6 @@ dhtmlXTreeObject.prototype._getPrevNode=function(node,mode){\n ...@@ -1987,16 +1995,6 @@ dhtmlXTreeObject.prototype._getPrevNode=function(node,mode){\n
return node.parentObject;\n return node.parentObject;\n
else return -1;\n else return -1;\n
};\n };\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
]]></string> </value> ]]></string> </value>
...@@ -2007,7 +2005,7 @@ dhtmlXTreeObject.prototype._getPrevNode=function(node,mode){\n ...@@ -2007,7 +2005,7 @@ dhtmlXTreeObject.prototype._getPrevNode=function(node,mode){\n
</item> </item>
<item> <item>
<key> <string>size</string> </key> <key> <string>size</string> </key>
<value> <int>52800</int> </value> <value> <int>53275</int> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment