function removeNode() { if(tree.getSelected()) { var node = tree.getSelected(); node.remove(); } }
function addPeopleNode(strParentKey,strKey,strText,strTag) { if(tree.getSelected()) { var node = tree.getSelected(); var childNode; //node.expand(); childNode = node.add(new WebFXTreeItem(strText,strKey,strTag,"","","../resources/images/people1.png")); node.expand(); //why I do so? I dont want to tell you,hah! childNode.focus(); treeClick(); } }
function addDeptNode(strParentKey,strKey,strText,strTag) { if(tree.getSelected()) { var node = tree.getSelected(); var childNode; childNode = node.add(new WebFXTreeItem(strText,strKey,strTag)); node.expand(); childNode.focus(); treeClick(); } }
function updateDeptNode(strTag,strText) { if(tree.getSelected()) { var node = tree.getSelected(); node.text = strText; node.tag = strTag; node.focus(); } }
function updatePeopleNode(strTag,strText) { if(tree.getSelected()) { var node = tree.getSelected(); node.text = strText; node.tag = strTag; node.focus(); }