#1949 fixes 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
parent 7861cf5bab
commit ac89b7e978
6 changed files with 9 additions and 7 deletions

4
dist/lang/fr.js vendored
View File

@@ -3,7 +3,7 @@
/* jshint quotmark: double */ /* jshint quotmark: double */
window.SwaggerTranslator.learn({ window.SwaggerTranslator.learn({
"Warning: Deprecated":"Avertissement : Obsolète", "Warning: Deprecated":"Avertissement : Obsolète",
"Implementation Notes":"Notes d'implementation", "Implementation Notes":"Notes d'implémentation",
"Response Class":"Classe de la réponse", "Response Class":"Classe de la réponse",
"Status":"Statut", "Status":"Statut",
"Parameters":"Paramètres", "Parameters":"Paramètres",
@@ -28,7 +28,7 @@ window.SwaggerTranslator.learn({
"Expand Operations":"Développer les opérations", "Expand Operations":"Développer les opérations",
"Raw":"Brut", "Raw":"Brut",
"can't parse JSON. Raw result":"impossible de décoder le JSON. Résultat brut", "can't parse JSON. Raw result":"impossible de décoder le JSON. Résultat brut",
"Example Value":"Valeur exemple", "Example Value":"Exemple la valeur",
"Model Schema":"Définition du modèle", "Model Schema":"Définition du modèle",
"Model":"Modèle", "Model":"Modèle",
"apply":"appliquer", "apply":"appliquer",

1
dist/swagger-ui.js vendored
View File

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

File diff suppressed because one or more lines are too long

View File

@@ -82,7 +82,7 @@
.swagger-section pre .vhdl .attribute, .swagger-section pre .vhdl .attribute,
.swagger-section pre .clojure .attribute, .swagger-section pre .clojure .attribute,
.swagger-section pre .coffeescript .property { .swagger-section pre .coffeescript .property {
color: #8888ff; color: #88F;
} }
.swagger-section pre .keyword, .swagger-section pre .keyword,
.swagger-section pre .id, .swagger-section pre .id,

View File

@@ -82,7 +82,7 @@
.swagger-section pre .vhdl .attribute, .swagger-section pre .vhdl .attribute,
.swagger-section pre .clojure .attribute, .swagger-section pre .clojure .attribute,
.swagger-section pre .coffeescript .property { .swagger-section pre .coffeescript .property {
color: #8888ff; color: #88F;
} }
.swagger-section pre .keyword, .swagger-section pre .keyword,
.swagger-section pre .id, .swagger-section pre .id,

View File

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