1
function VIRTUAL(id, control) {
2
this.node = document.getElementById(id);
3
this.control = control;
6
this.srctree=new dhtmlXTreeObject(id,"100%","100%",0);
7
if (adei.cfg.dhtmlx_iconset) {
8
this.srctree.setImagePath(adei.cfg.dhtmlx_iconset);
10
this.srctree.setXMLAutoLoading(adei.GetServiceURL("srctree"));
11
this.srctree.setDataMode("xml");
12
this.srctree.enableCheckBoxes(1);
13
this.srctree.enableThreeStateCheckboxes(true);
16
VIRTUAL.prototype.Start = function() {
17
adei.source.RegisterSelectionCallback(new CALLBACK(adei.virtual, "OnSelect"), /^virtual$/, /.*/, /^virtual_none$/);
18
this.srctree.loadXML(adei.GetServiceURL("srctree"));
21
VIRTUAL.prototype.OnSelect = function() {
22
adei.popup.OpenControl(this.control);