diff options
-rwxr-xr-x | askbot/skins/default/media/jquery-openid/jquery.openid.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/askbot/skins/default/media/jquery-openid/jquery.openid.js b/askbot/skins/default/media/jquery-openid/jquery.openid.js index 19067bab..36937d1d 100755 --- a/askbot/skins/default/media/jquery-openid/jquery.openid.js +++ b/askbot/skins/default/media/jquery-openid/jquery.openid.js @@ -281,14 +281,14 @@ $.fn.authenticator = function() { var start_facebook_login = function(){ set_provider_name($(this)); if (typeof FB != 'undefined'){ - FB.login(); - //FB.getLoginStatus(function(response){ - // if (response.session){ - // alert('you are logged in'); - // } - // else { - // } - //}); + FB.getLoginStatus(function(response){ + if (response.session){ + signin_form.submit(); + } + else { + FB.login(); + } + }); } return false; }; |