#1248 fixed When toggling the JSON / XML field, the definitions in the Response Messages section disappear on XML
This commit is contained in:
@@ -236,7 +236,6 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
||||
router: this.router
|
||||
});
|
||||
$('.response-content-type', $(this.el)).append(responseContentTypeView.render().el);
|
||||
this.showSnippet();
|
||||
ref4 = this.model.parameters;
|
||||
for (p = 0, len3 = ref4.length; p < len3; p++) {
|
||||
param = ref4[p];
|
||||
@@ -245,8 +244,12 @@ SwaggerUi.Views.OperationView = Backbone.View.extend({
|
||||
ref5 = this.model.responseMessages;
|
||||
for (q = 0, len4 = ref5.length; q < len4; q++) {
|
||||
statusCode = ref5[q];
|
||||
statusCode.isXML = isXML;
|
||||
statusCode.isJSON = isJSON;
|
||||
this.addStatusCode(statusCode);
|
||||
}
|
||||
|
||||
this.showSnippet();
|
||||
return this;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user