From 3ea590d97a0418e1f71b3ef5b18ac934eb1a76dc Mon Sep 17 00:00:00 2001 From: rpidikiti Date: Mon, 1 Aug 2011 16:00:36 -0700 Subject: [PATCH] Fixed issue with displaying error response --- src/main/html/javascript/swagger-ui.js | 2 ++ 1 file changed, 2 insertions(+) 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() + "
"); }