fbauth 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
+ }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 3
9
- version: 0.9.3
8
+ - 4
9
+ version: 0.9.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Three Wise Men Inc.