Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
Bug fix in login link JS callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Hediard committed Dec 16, 2012
1 parent 0df7cfc commit a84b3f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web-app/js/login-link.js
@@ -1,11 +1,11 @@
$('a.fb-sdk-login-link').click(function() {
$('a.fb-sdk-login-link').click(function(event) {
var link = $(this);
link.attr('disabled', 'disabled');
FB.login(function(response) {
if (link.data('callback') != undefined) {
var callback = window[link.data('callback')];
if (typeof fn === 'function') {
callback(response);
if (typeof callback === 'function') {
callback(response, event.target);
}
} else if (response.authResponse) {
// user is logged
Expand Down

0 comments on commit a84b3f7

Please sign in to comment.