Use jQuery instead of window.onLoad, which I believe will be faster and more reliable
This commit is contained in:
parent
9853d47137
commit
1330998b9b
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user