]>
Commit | Line | Data |
---|---|---|
90ea6e5a CP |
1 | qwebirc.ui.AboutPane = new Class({ |
2 | Implements: [Events], | |
3 | initialize: function(parent) { | |
0239618f CP |
4 | var delayfn = function() { parent.set("html", "<div class=\"loading\">Loading. . .</div>"); }; |
5 | var cb = delayfn.delay(500); | |
6 | ||
fbe5af77 | 7 | var r = qwebirc.ui.RequestTransformHTML({url: qwebirc.global.staticBaseURL + "panes/about.html", update: parent, onSuccess: function() { |
0239618f | 8 | $clear(cb); |
90ea6e5a CP |
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 | }); |