Created
July 2, 2014 11:59
-
-
Save iurevych/131dacf895ed24bd446f to your computer and use it in GitHub Desktop.
This file contains 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
var json_string = JSON.stringify(js_object); | |
$.ajax({ | |
url: "//cameratag.com/videos/"+video.uuid+"/form_data.json", | |
data:{form_data: json_string}, | |
type:"get", | |
dataType: "jsonp", | |
success: function(response) { | |
return true | |
}, | |
error: function() { | |
throw_error("Unable to submit video data."); | |
sendStat("video_data_error"); | |
return false; | |
} | |
}) | |
} | |
addVideoData = function(js_object) { | |
if (typeof(js_object) != "object") { | |
return | |
} | |
var video_data_default = {firstName:currentUser.firstName, title:title, description:'', email:currentUser.email, type:'video', amount:prize}; | |
rrCamera.addVideoData(video_data_default); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment