/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function VIRTUAL(id, control) {
    this.node = document.getElementById(id);
    this.control = control;


    this.srctree=new dhtmlXTreeObject(id,"100%","100%",0);
    if (adei.cfg.dhtmlx_iconset) {
	this.srctree.setImagePath(adei.cfg.dhtmlx_iconset);
    }
    this.srctree.setXMLAutoLoading(adei.GetServiceURL("srctree")); 
    this.srctree.setDataMode("xml");
    this.srctree.enableCheckBoxes(1);
    this.srctree.enableThreeStateCheckboxes(true);
}

VIRTUAL.prototype.Start = function() {
    adei.source.RegisterSelectionCallback(new CALLBACK(adei.virtual, "OnSelect"), /^virtual$/, /.*/, /^virtual_none$/);
    this.srctree.loadXML(adei.GetServiceURL("srctree"));
}

VIRTUAL.prototype.OnSelect = function() {
    adei.popup.OpenControl(this.control);
}