summaryrefslogtreecommitdiff
path: root/plugins/FBConnect
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-08-08 22:55:31 -0400
committerCraig Andrews <candrews@integralblue.com>2009-08-08 22:55:31 -0400
commit1330998b9b5ee6ddd5ece50b394ecfe505fb1b24 (patch)
tree1a8037471b7f9a4cb3a54031cdf9b8a69bbaddd0 /plugins/FBConnect
parent9853d47137347b42adcfcb3cff0dcaa96b60a149 (diff)
Use jQuery instead of window.onLoad, which I believe will be faster and more reliable
Diffstat (limited to 'plugins/FBConnect')
-rw-r--r--plugins/FBConnect/FBConnectPlugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/FBConnect/FBConnectPlugin.php b/plugins/FBConnect/FBConnectPlugin.php
index 19b778c66..fd16d2bf1 100644
--- a/plugins/FBConnect/FBConnectPlugin.php
+++ b/plugins/FBConnect/FBConnectPlugin.php
@@ -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";