]>
Commit | Line | Data |
---|---|---|
90ea6e5a CP |
1 | qwebirc.ui.PrivacyPolicyPane = 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/privacypolicy.html", update: parent, onSuccess: function() { |
0239618f CP |
8 | $clear(cb); |
9 | ||
90ea6e5a CP |
10 | parent.getElement("input[class=close]").addEvent("click", function() { |
11 | this.fireEvent("close"); | |
12 | }.bind(this)); | |
13 | }.bind(this)}); | |
14 | r.get(); | |
15 | } | |
16 | }); |