Use jQuery instead of window.onLoad, which I believe will be faster and more reliable

This commit is contained in:
Craig Andrews 2009-08-08 22:55:31 -04:00
parent 9853d47137
commit 1330998b9b

View File

@ -116,13 +116,13 @@ class FBConnectPlugin extends Plugin
// but we actually do, for IE and Safari. Gar.
$html = sprintf('<script type="text/javascript">
window.onload = function () {
$(document).ready(function () {
FB_RequireFeatures(
["XFBML"],
function() {
FB.init("%s", "../xd_receiver.html");
}
); }
); });
function goto_login() {
window.location = "%s";