|
From: Jon O. <jon...@us...> - 2007-02-15 12:44:23
|
Update of /cvsroot/mxbb/mx_simpledoc/simpledoc/shared/DynamicTree In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv7691/bugsbt/shared/DynamicTree Modified Files: DynamicTree.js Log Message: Ok. here we go. This is the cool new mxBB Bugtracker ;) Index: DynamicTree.js =================================================================== RCS file: /cvsroot/mxbb/mx_simpledoc/simpledoc/shared/DynamicTree/DynamicTree.js,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DynamicTree.js 17 Sep 2006 20:15:57 -0000 1.3 --- DynamicTree.js 15 Feb 2007 12:43:42 -0000 1.4 *************** *** 322,325 **** --- 322,350 ---- this.updateHtml(); }; + this.rename = function(product_data) { + build_name = product_data.substr(product_data.lastIndexOf(";")+1); + product_data = product_data.substr(0,product_data.lastIndexOf(";")); + + edition_name = product_data.substr(product_data.lastIndexOf(";")+1); + product_data = product_data.substr(0,product_data.lastIndexOf(";")); + + product_name = product_data.substr(product_data.lastIndexOf(";")+1); + + var build = findNode(this.active); + build.text = product_name; + + if (build.getLevel() > 1) + { + var edition = build.parentNode; + edition.text = edition_name; + + if (edition.getLevel() > 1) + { + var product = edition.parentNode; + product.text = build_name; + } + } + this.updateHtml(); + }; function Node(id, text, parentNode, childNodes, isDoc, isFolder) { this.id = id; |