/dev/trunk

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

« back to all changes in this revision

Viewing changes to setups/katrin/js/xmlmodule/katrindata.js

  • Committer: Suren A. Chilingaryan
  • Date: 2014-01-25 16:38:03 UTC
  • Revision ID: csa@dside.dyndns.org-20140125163803-mhmpyk4dpzz7qabw
Detach setups

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
function KATRINDATA(div) {
2
 
    KATRINDATA.superclass.call(this, div, "runs", "runs");
3
 
}
4
 
 
5
 
classExtend(KATRINDATA, EVENTDATA);
6
 
 
7
 
/*
8
 
 
9
 
KATRINDATA.prototype.Update = function(json, forced) {
10
 
    if ((json.xml)&&(json.xslt)) {
11
 
        adei.xslpool.Load(json.xslt, json.xml, katrinDataRender, this);
12
 
        adei.SetSuccessStatus(translate("Done"));
13
 
    } else {
14
 
        adei.SetStatus(translate("Update failed: Incomplete response received by the module"));
15
 
    }
16
 
}
17
 
 
18
 
KATRINDATA.prototype.Render = function(xmldoc, error) {
19
 
//    adei.OpenControl(this.module);
20
 
 
21
 
    if (xmldoc) {
22
 
        htmlReplace(xmldoc, this.div, true);
23
 
    } else {
24
 
        htmlReplace(translate("Update of Katrin data is failed due \"%s\"", error), this.div);
25
 
    }
26
 
}
27
 
 
28
 
function katrinDataRender(xmldoc, self, error) {
29
 
    self.Render(xmldoc, error);
30
 
}
31
 
*/
 
 
b'\\ No newline at end of file'