Created
October 24, 2012 16:11
-
-
Save nambrot/3947019 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
countdown = 2 | |
cb = -> | |
console.log countdown | |
countdown = countdown - 1 | |
user.trigger 'change' if countdown == 0 | |
$.ajax | |
type: 'GET' | |
url: "https://www.credport.org/api/v1/users/#{user.get('id')}/socialconnections?include=verifications" | |
contentType: "application/json" | |
dataType: 'jsonp' | |
success: (resp) -> | |
user.socialconnectionsobject = new SocialConnections resp.data | |
complete: cb | |
$.ajax | |
type: 'GET' | |
url: "https://www.credport.org/api/v1/users/#{user.get('id')}/commoninterests?include=verifications" | |
contentType: "application/json" | |
dataType: 'jsonp' | |
success: (resp) -> | |
user.commoninterestsobject = new CommonInterests resp.data | |
complete: -> cb |
clarkdave
commented
Oct 28, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment