#1949 fixes rendering fails when supportedSubmitMethods does not contains post or put

This commit is contained in:
Anna Bodnia
2016-02-18 13:03:30 +02:00
parent 7861cf5bab
commit ac89b7e978
6 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
/* jshint quotmark: double */
window.SwaggerTranslator.learn({
"Warning: Deprecated":"Avertissement : Obsolète",
"Implementation Notes":"Notes d'implementation",
"Implementation Notes":"Notes d'implémentation",
"Response Class":"Classe de la réponse",
"Status":"Statut",
"Parameters":"Paramètres",
@@ -28,7 +28,7 @@ window.SwaggerTranslator.learn({
"Expand Operations":"Développer les opérations",
"Raw":"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":"Modèle",
"apply":"appliquer",
+1
View File
@@ -26307,6 +26307,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();
+3 -3
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -82,7 +82,7 @@
.swagger-section pre .vhdl .attribute,
.swagger-section pre .clojure .attribute,
.swagger-section pre .coffeescript .property {
color: #8888ff;
color: #88F;
}
.swagger-section pre .keyword,
.swagger-section pre .id,
+1 -1
View File
@@ -82,7 +82,7 @@
.swagger-section pre .vhdl .attribute,
.swagger-section pre .clojure .attribute,
.swagger-section pre .coffeescript .property {
color: #8888ff;
color: #88F;
}
.swagger-section pre .keyword,
.swagger-section pre .id,
@@ -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();