fbauth 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/fbauth/_login.html.haml +4 -3
- metadata +2 -2
@@ -4,7 +4,9 @@
|
|
4
4
|
$('#{add_el}').hide();
|
5
5
|
$('#{ready_el}').hide();
|
6
6
|
});
|
7
|
-
FB.getLoginStatus(function(response) {
|
7
|
+
FB.getLoginStatus(function(response) { fbauth_update_page(response); });
|
8
|
+
FB.Event.subscribe('auth.statusChange', function(response) { fbauth_update_page(response); });
|
9
|
+
function fbauth_update_page(response) {
|
8
10
|
if (response.status == 'connected') {
|
9
11
|
$('#{ready_el}').show();
|
10
12
|
window.top.location.href = '#{FacebookConfig.app_url}';
|
@@ -13,5 +15,4 @@
|
|
13
15
|
} else if (response.status == 'notConnected') {
|
14
16
|
$('#{add_el}').show();
|
15
17
|
}
|
16
|
-
}
|
17
|
-
|
18
|
+
}
|