]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use jQuery instead of window.onLoad, which I believe will be faster and more reliable
authorCraig Andrews <candrews@integralblue.com>
Sun, 9 Aug 2009 02:55:31 +0000 (22:55 -0400)
committerCraig Andrews <candrews@integralblue.com>
Sun, 9 Aug 2009 02:55:31 +0000 (22:55 -0400)
plugins/FBConnect/FBConnectPlugin.php

index 19b778c6677ac30904b11e50c10ba14eeb0bc5e3..fd16d2bf1e4fb058c901324645086a5fcf7a2299 100644 (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";