We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abaf20c commit 3a28caeCopy full SHA for 3a28cae
rest_framework_docs/static/rest_framework_docs/js/index.js
@@ -22,7 +22,15 @@ var jsonPP = {
22
23
$( document ).ready(function() {
24
25
- var setResponse = function (response) {
+ var setResponse = function (method, response) {
26
+
27
+ console.log(response);
28
+ console.log(response.status);
29
30
+ if (method == 'OPTIONS') {
31
+ $('#responseData').html(jsonPP.prettyPrint(response));
32
+ return;
33
+ }
34
35
// Status Code
36
var statusCodeFirstChar = String(response.status).charAt(0);
@@ -69,7 +77,7 @@ $( document ).ready(function() {
69
77
password: 'test'
70
78
}
71
79
}).always(function(response) {
72
- setResponse(response);
80
+ setResponse(method, response);
73
81
});
74
82
};
75
83
0 commit comments