[1949]: rendering fails when supportedSubmitMethods does not contains post or put

This commit is contained in:
Anna Bodnia
2016-02-18 12:59:59 +02:00
committed by bodnia
parent 779d9b74e2
commit 356e67ef85
2 changed files with 3 additions and 2 deletions

View File

@@ -154,6 +154,7 @@ SwaggerUi.Views.ParameterView = Backbone.View.extend({
},
toggleSnippet: function (type) {
type = type || '';
if (type.indexOf('xml') > -1) {
this.$('.snippet_xml').show();
this.$('.snippet_json').hide();