/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to js/virtual.js

  • Committer: Suren A. Chilingaryan
  • Date: 2008-10-30 01:27:40 UTC
  • mto: This revision was merged to the branch mainline in revision 116.
  • Revision ID: csa@dside.dyndns.org-20081030012740-svt0yigxj5uzwxyj
Few steps on source tree integration in javascript frontend

Show diffs side-by-side

added added

removed removed

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