Skip to content
Browse files

Added a line break to the ajax call so "error:" would be on it's own …

…line.
  • Loading branch information...
1 parent 49370e6 commit f1d710e78ca0dde34a3bffb265bc93125e9689f4 @derekclee derekclee committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 chapters/jquery/ajax.md
View
3 chapters/jquery/ajax.md
@@ -25,7 +25,8 @@ $(document).ready ->
# Advanced Settings
$.ajax '/',
type: 'GET'
- dataType: 'html' error: (jqXHR, textStatus, errorThrown) ->
+ dataType: 'html'
+ error: (jqXHR, textStatus, errorThrown) ->
$('body').append "AJAX Error: #{textStatus}"
success: (data, textStatus, jqXHR) ->
$('body').append "Successful AJAX call: #{data}"

0 comments on commit f1d710e

Please sign in to comment.
Something went wrong with that request. Please try again.