File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,16 @@ $.ajax({
35
35
{ {/body.has_url_encoded_body} }
36
36
{ {#body.has_json_body} }
37
37
contentType:"application/json",
38
- data:JSON.stringify({ {{body.json_body_object} }}),
38
+ data:JSON.stringify({ {{body.json_body_object} }})
39
39
{ {/body.has_json_body} }
40
- success:function(data, textStatus, jqXHR){
41
- console.log(" HTTP Request Succeeded: " + jqXHR.status);
42
- console.log(data);
43
- } ,
44
- error:function(jqXHR, textStatus, errorThrown){
45
- console.log(" HTTP Request Failed" );
46
- }
40
+ })
41
+ .done(function(data, textStatus, jqXHR) {
42
+ console.log(" HTTP Request Succeeded: " + jqXHR.status);
43
+ console.log(data);
44
+ } )
45
+ .fail(function(jqXHR, textStatus, errorThrown) {
46
+ console.log(" HTTP Request Failed" );
47
+ } )
48
+ .always(function() {
49
+ /* ... */
47
50
} );
You can’t perform that action at this time.
0 commit comments