]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/ui/panes/privacypolicy.js
Add configuration of dynamic and static base URLs.
[irc/quakenet/qwebirc.git] / js / ui / panes / privacypolicy.js
index 13b4f17e8cc6fecd49249eac71b7a390c557f228..648358dd3cb00549f250a856b7539d47cd1bca55 100644 (file)
@@ -1,8 +1,12 @@
 qwebirc.ui.PrivacyPolicyPane = new Class({
   Implements: [Events],
   initialize: function(parent) {
-    parent.set("html", "<div class=\"loading\">Loading. . .</div>");
-    var r = new Request.HTML({url: "panes/privacypolicy.html", update: parent, onSuccess: function() {
+    var delayfn = function() { parent.set("html", "<div class=\"loading\">Loading. . .</div>"); };
+    var cb = delayfn.delay(500);
+    
+    var r = qwebirc.ui.RequestTransformHTML({url: qwebirc.global.staticBaseURL + "panes/privacypolicy.html", update: parent, onSuccess: function() {
+      $clear(cb);
+      
       parent.getElement("input[class=close]").addEvent("click", function() {
         this.fireEvent("close");
       }.bind(this));