Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Wrong indentation
$.ajax({
url: updateUrl,
type: 'POST',
contentType: 'application/json',
dataType: 'json',
data: JSON.stringify(data)
}).done(function(data) {
updateDisplayData(data.data);
updateFormWithJson(data.data);
}).fail(function(data) {
throw new Error('json request failed: ' + data.statusText);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.