/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function SEARCH() {
    this.id = "";

}


SEARCH.prototype.StartSearch = function(text) {
    loadXML(adei.GetSearchService(text), searchResults, this);
}

SEARCH.prototype.Results = function(xmldoc) {
    adei.OpenControl("searchtab");
}


function searchResults(xmldoc, search, error) {
    if (!xmldoc) {
	adeiReportError(translate("Search is failed due \"%s\"", error));
	return;
    }
    search.Results(xmldoc);
}