Skip to content

Instantly share code, notes, and snippets.

@mdix
Created November 16, 2013 19:53
Show Gist options
  • Save mdix/7504547 to your computer and use it in GitHub Desktop.
Save mdix/7504547 to your computer and use it in GitHub Desktop.
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