Skip to content

Commit f1d710e

Browse files
committed
Added a line break to the ajax call so "error:" would be on it's own line.
1 parent 49370e6 commit f1d710e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chapters/jquery/ajax.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ $(document).ready ->
2525
# Advanced Settings
2626
$.ajax '/',
2727
type: 'GET'
28-
dataType: 'html' error: (jqXHR, textStatus, errorThrown) ->
28+
dataType: 'html'
29+
error: (jqXHR, textStatus, errorThrown) ->
2930
$('body').append "AJAX Error: #{textStatus}"
3031
success: (data, textStatus, jqXHR) ->
3132
$('body').append "Successful AJAX call: #{data}"

0 commit comments

Comments
 (0)