/dev/adei-asec

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/adei-asec

« back to all changes in this revision

Viewing changes to js/virtual.js

  • Committer: Suren A. Chilingaryan
  • Date: 2008-12-06 01:38:28 UTC
  • Revision ID: csa@dside.dyndns.org-20081206013828-lm3jqpc4fizd6cn7
XML+XSLT modules support, Alarms support in frontend (mozilla only)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    this.srctree.enableThreeStateCheckboxes(true);
14
14
}
15
15
 
 
16
VIRTUAL.prototype.AttachConfig = function(config) {
 
17
    this.config = config;
 
18
//    config.Register(this);
 
19
}
 
20
 
16
21
VIRTUAL.prototype.Start = function() {
17
22
    adei.source.RegisterSelectionCallback(new CALLBACK(adei.virtual, "OnSelect"), /^virtual$/, /.*/, /^virtual_none$/);
 
23
    adei.source.RegisterSubmitCallback(new CALLBACK(adei.virtual, "ApplyConfig"), /^virtual$/);
18
24
    this.srctree.loadXML(adei.GetServiceURL("srctree"));
19
25
}
20
26
 
21
27
VIRTUAL.prototype.OnSelect = function() {
22
28
    adei.popup.OpenControl(this.control);
23
29
}
 
30
 
 
31
VIRTUAL.prototype.ApplyConfig = function() {
 
32
    this.config.SetVirtualSettings("srctree", this.srctree.getAllChecked());
 
33
//    alert();
 
34
}
 
35
 
 
36
VIRTUAL.prototype.ReadConfig = function(opts) {
 
37
/*
 
38
    if (this.config) {
 
39
        if (typeof opts == "undefined") opts = new Object;
 
40
            
 
41
        opts.db_server = this.config.cfg.db_server;
 
42
        opts.db_name = this.config.cfg.db_name;
 
43
        opts.db_group = this.config.cfg.db_group;
 
44
        
 
45
        if (this.config.cfg.db_mask != null) {
 
46
            var mask = this.config.cfg.db_mask;
 
47
            if (mask.search(',')>=0) {
 
48
                opts.db_mask = mask;
 
49
                opts.db_item = 0;
 
50
            } else if (isNaN(mask)) {
 
51
                opts.db_mask = mask;
 
52
                opts.db_item = 0;
 
53
            } else {
 
54
                opts.db_mask = -1;
 
55
                opts.db_item = mask;
 
56
            }
 
57
        }
 
58
        
 
59
        this.interval.ReadConfig(opts);
 
60
        this.Update(opts);
 
61
    }
 
62
*/
 
63
}
 
64