[Erp5-report] r6875 - in /erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn:...
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Apr 24 11:29:30 CEST 2006
Author: chris
Date: Mon Apr 24 11:29:28 2006
New Revision: 6875
URL: http://svn.erp5.org?rev=6875&view=rev
Log:
- implemented getAllParentsIds() to make commit from popup menu work in some cases it wasn't (removed file in a removed folder)
Modified:
erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doCreateJavaScriptStatus.xml
erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/js/dhtmlXTree.js.xml
Modified: erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doCreateJavaScriptStatus.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doCreateJavaScriptStatus.xml?rev=6875&r1=6874&r2=6875&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doCreateJavaScriptStatus.xml (original)
+++ erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/BusinessTemplate_doCreateJavaScriptStatus.xml Mon Apr 24 11:29:28 2006
@@ -154,8 +154,7 @@
}\n
}\n
if(popup==1){\n
- //TODO\n
- filesPartiallyCheckedArray=[];\n
+ filesPartiallyCheckedArray=tree.getAllParentsIds(tree.getSelectedItemId()).split(\',\');\n
}else{\n
filesPartiallyCheckedArray=tree.getAllPartiallyChecked().split(\',\');\n
}\n
Modified: erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/js/dhtmlXTree.js.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/js/dhtmlXTree.js.xml?rev=6875&r1=6874&r2=6875&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/js/dhtmlXTree.js.xml (original)
+++ erp5/trunk/bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_svn/js/dhtmlXTree.js.xml Mon Apr 24 11:29:28 2006
@@ -14,7 +14,7 @@
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
- <value> <string>ts44161193.89</string> </value>
+ <value> <string>ts45870562.28</string> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
@@ -34,9 +34,6 @@
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
- \n
-\n
- \n
function dhtmlXTreeObject(htmlObject,width,height,rootId){\n
if(typeof(htmlObject)!="object")\n
this.parentObject=document.getElementById(htmlObject);\n
@@ -1023,8 +1020,19 @@
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
+ 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
dhtmlXTreeObject.prototype.changeItemId=function(itemId,newItemId)\n
{\n
@@ -1987,16 +1995,6 @@
return node.parentObject;\n
else return -1;\n
};\n
-\n
- \n
-\n
-\n
-\n
-\n
- \n
-\n
-\n
-\n
]]></string> </value>
@@ -2007,7 +2005,7 @@
</item>
<item>
<key> <string>size</string> </key>
- <value> <int>52800</int> </value>
+ <value> <int>53275</int> </value>
</item>
<item>
<key> <string>title</string> </key>
More information about the Erp5-report
mailing list