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
| $(".delete-link").click(function() { | |
| var parentLi = $(this).parents("li") | |
| var postID = $(parentLi).attr("data-id") | |
| var postType = $(parentLi).attr("data-type") | |
| if (postType == "completed_adoption") { | |
| postType = "adoptions"; | |
| } else { | |
| postType = "followups"; |
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
| FB.login(function(response) { | |
| console.log(response); | |
| var uid = response.authResponse.userID; | |
| var accessToken = response.authResponse.accessToken; | |
| $.ajax({ | |
| url: "/u/auth/facebook", | |
| type: "POST", |
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
| idea: Object | |
| adoptions: Array[0] | |
| length: 0 | |
| __proto__: Array[0] | |
| adoptions_count: 0 | |
| causes: Array[4] | |
| challenge_ids: null | |
| comments: Array[0] | |
| completed_at: "2014-03-27T16:36:24.729-04:00" |
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
| Object | |
| causes: Array[3] | |
| 0: Object | |
| description: null | |
| id: 94 | |
| idea_causes_count: 2 | |
| title: "Pest Control" | |
| trending_ideas_count: null | |
| user_causes_count: 1 | |
| __proto__: Object |