Fixed issue with displaying error response

This commit is contained in:
rpidikiti
2011-08-01 16:00:36 -07:00
parent 9e39cb06fc
commit 3ea590d97a

View File

@@ -290,6 +290,7 @@ jQuery(function($) {
showErrorStatus: function(data) { showErrorStatus: function(data) {
log("error " + data.status); log("error " + data.status);
this.showStatus(data); this.showStatus(data);
$(this.elementScope + "_content_sandbox_response").slideDown();
}, },
showCompleteStatus: function(data) { showCompleteStatus: function(data) {
@@ -301,6 +302,7 @@ jQuery(function($) {
log(data); log(data);
log(data.getAllResponseHeaders()); log(data.getAllResponseHeaders());
$(".response_code", this.elementScope + "_content_sandbox_response").html("<pre>" + data.status + "</pre>"); $(".response_code", this.elementScope + "_content_sandbox_response").html("<pre>" + data.status + "</pre>");
$(".response_body", this.elementScope + "_content_sandbox_response").html("<pre>" + data.responseText + "</pre>");
$(".response_headers", this.elementScope + "_content_sandbox_response").html("<pre>" + data.getAllResponseHeaders() + "</pre>"); $(".response_headers", this.elementScope + "_content_sandbox_response").html("<pre>" + data.getAllResponseHeaders() + "</pre>");
} }