/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/search.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 SEARCH() {
 
2
    this.id = "";
 
3
 
 
4
}
 
5
 
 
6
 
 
7
SEARCH.prototype.StartSearch = function(text) {
 
8
    loadXML(adei.GetSearchService(text), searchResults, this);
 
9
}
 
10
 
 
11
SEARCH.prototype.Results = function(xmldoc) {
 
12
    adei.OpenControl("searchtab");
 
13
}
 
14
 
 
15
 
 
16
function searchResults(xmldoc, search, error) {
 
17
    if (!xmldoc) {
 
18
        adeiReportError(translate("Search is failed due \"%s\"", error));
 
19
        return;
 
20
    }
 
21
    search.Results(xmldoc);
 
22
}
 
 
b'\\ No newline at end of file'