/adei/trunk

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

« back to all changes in this revision

Viewing changes to js/xmlmodule.js

  • Committer: Suren A. Chilingaryan
  • Date: 2009-01-30 23:56:42 UTC
  • Revision ID: csa@dside.dyndns.org-20090130235642-gw9n5v9y7w23dmmd
Further search improvements, support for custom properties (config)

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
function EVENTDATA(div, event_name, search_module) {
56
56
    EVENTDATA.superclass.call(this, div);
57
57
 
 
58
    this.module = null;
58
59
    this.event_name = event_name;
59
60
    this.search_module = search_module;
60
61
    
72
73
 
73
74
classExtend(EVENTDATA, XMLMODULE);
74
75
 
 
76
 
75
77
EVENTDATA.prototype.onSelect = function(from, to) {
76
 
    adei.Search('{' + this.search_module + '} interval:' + from + ' - ' + to);
 
78
    adei.Search('{' + this.search_module + '} interval:' + from + '-' + to);
 
79
}
 
80
 
 
81
EVENTDATA.prototype.SetAutoOpen = function(module) {
 
82
    this.module = module;
 
83
}
 
84
 
 
85
EVENTDATA.prototype.SetCustomProperties = function(query) {
 
86
    adei.SetCustomProperties(query);
 
87
    if (this.module) adei.OpenModule(this.module);
77
88
}