if (tid == "") {
_this.scrolled_window.el.hide();
- _this.el.resize(w, 300);
+ _this.el.resize(w, 150);
} else {
_this.scrolled_window.el.show();
_this.el.resize(w, 800);
}
- this.el.load_uri("http://www.google.com");
+
+ var rs = RooTicket.singleton();
+ var uri = new WebKit.URIRequest("https://roojs.com/admin.php/MTrack/View/" + tid);
+ var hd = uri.get_http_headers();
+ var authCode = Base64.encode ("%s:%s".printf(rs.username, rs.password).data);
+ hd.append("Authorization", "Basic %s".printf(authCode));
+
+ this.el.load_request(uri);
}
}