diff --git a/src/main/html/javascript/swagger-ui.js b/src/main/html/javascript/swagger-ui.js index f522bed0..979e8bd0 100644 --- a/src/main/html/javascript/swagger-ui.js +++ b/src/main/html/javascript/swagger-ui.js @@ -290,6 +290,7 @@ jQuery(function($) { showErrorStatus: function(data) { log("error " + data.status); this.showStatus(data); + $(this.elementScope + "_content_sandbox_response").slideDown(); }, showCompleteStatus: function(data) { @@ -301,6 +302,7 @@ jQuery(function($) { log(data); log(data.getAllResponseHeaders()); $(".response_code", this.elementScope + "_content_sandbox_response").html("
" + data.status + "
"); + $(".response_body", this.elementScope + "_content_sandbox_response").html("
" + data.responseText + "
"); $(".response_headers", this.elementScope + "_content_sandbox_response").html("
" + data.getAllResponseHeaders() + "
"); }