fbauth 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,16 @@
1
1
  :javascript
2
2
  $(document).ready(function() {
3
- $('#{login_el}').hide();
4
- $('#{add_el}').hide();
5
- $('#{ready_el}').hide();
3
+ fbauth_hide_panels();
6
4
  });
7
5
  FB.getLoginStatus(function(response) { fbauth_update_page(response); });
8
6
  FB.Event.subscribe('auth.statusChange', function(response) { fbauth_update_page(response); });
7
+ function fbauth_hide_panels {
8
+ $('#{login_el}').hide();
9
+ $('#{add_el}').hide();
10
+ $('#{ready_el}').hide();
11
+ }
9
12
  function fbauth_update_page(response) {
13
+ fb_hide_panels();
10
14
  if (response.status == 'connected') {
11
15
  $('#{ready_el}').show();
12
16
  window.top.location.href = '#{FacebookConfig.app_url}';
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 4
9
- version: 0.9.4
8
+ - 5
9
+ version: 0.9.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Three Wise Men Inc.