]> jfr.im git - irc/quakenet/qwebirc.git/blob - js/ui/panes/privacypolicy.js
Add configuration of dynamic and static base URLs.
[irc/quakenet/qwebirc.git] / js / ui / panes / privacypolicy.js
1 qwebirc.ui.PrivacyPolicyPane = 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/privacypolicy.html", update: parent, onSuccess: function() {
8 $clear(cb);
9
10 parent.getElement("input[class=close]").addEvent("click", function() {
11 this.fireEvent("close");
12 }.bind(this));
13 }.bind(this)});
14 r.get();
15 }
16 });