fbauth 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/fbauth/_login.html.haml +7 -3
- metadata +2 -2
@@ -1,12 +1,16 @@
|
|
1
1
|
:javascript
|
2
2
|
$(document).ready(function() {
|
3
|
-
|
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}';
|