]>
Commit | Line | Data |
---|---|---|
1 | qwebirc.ui.AboutPane = new Class({ | |
2 | Implements: [Events], | |
3 | initialize: function(parent) { | |
4 | var delayfn = function() { parent.set("html", "<div class=\"loading\">Loading. . .</div>"); }; | |
5 | var cb = delayfn.delay(500); | |
6 | ||
7 | var r = qwebirc.ui.RequestTransformHTML({url: qwebirc.global.staticBaseURL + "panes/about.html", update: parent, onSuccess: function() { | |
8 | $clear(cb); | |
9 | parent.getElement("input[class=close]").addEvent("click", function() { | |
10 | this.fireEvent("close"); | |
11 | }.bind(this)); | |
12 | parent.getElement("div[class=version]").set("text", "v" + qwebirc.VERSION); | |
13 | }.bind(this)}); | |
14 | r.get(); | |
15 | } | |
16 | }); |