We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 368e9d2 + e9ece38 commit 22b1a14Copy full SHA for 22b1a14
snippets/coffee.snippets
@@ -93,3 +93,17 @@ snippet req
93
# Export
94
snippet exp
95
${0:root} = exports ? this
96
+
97
98
+snippet ajax
99
+ $.ajax
100
+ url: "${1:mydomain.com/url}"
101
+ type: "${2:POST}"
102
+ dataType: "${3:xml/html/script/json}"
103
+ data: ${4:data}
104
+ complete: (jqXHR, textStatus) ->
105
+ ${5:// callback}
106
+ success: (data, textStatus, jqXHR) ->
107
+ ${6:// success callback}
108
+ error: (jqXHR, textStatus, errorThrown) ->
109
+ ${0:// error callback}
0 commit comments