add selector
This commit is contained in:
parent
5948f20d81
commit
b0ca99bd3e
|
@ -1,5 +1,5 @@
|
|||
/target
|
||||
|
||||
/logs
|
||||
.project
|
||||
|
||||
.classpath
|
||||
|
@ -10,4 +10,4 @@
|
|||
.externalToolBuilders
|
||||
|
||||
/src/main/webapp/.htaccess
|
||||
/logs
|
||||
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
function initSelectGraphDialog(parent, tree) {
|
||||
|
||||
if (tree == null)
|
||||
return;
|
||||
|
||||
if (tree.child != null && tree.child.length > 0) {
|
||||
|
||||
var selected = tree.child[0];
|
||||
var options = new Array();
|
||||
for ( var i = 0; i < tree.child.length; i++) {
|
||||
options.push(tree.child[i].key);
|
||||
}
|
||||
parent.append(createSingleList(tree.childClass, options));
|
||||
initSelectGraphDialog(parent, selected);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
var ChartSelector=function(allTree,showTree){
|
||||
|
||||
this.allTree=allTree;
|
||||
this.addTree=showTree;
|
||||
this.deleteTree=allTree.getExcessTree(allTree,showTree);
|
||||
this.addSelector=this.createSeletor(showTree);
|
||||
|
||||
};
|
||||
|
||||
ChartSelector.prototype.createSeletor=function(tree,actionFunction){
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
ChartSelector.prototype.addGraph= function(){
|
||||
|
||||
};
|
Loading…
Reference in New Issue