Added simple loading info
This commit is contained in:
@@ -121,6 +121,7 @@ async function formatXML(xml) {
|
|||||||
|
|
||||||
function showRequestBody(element){
|
function showRequestBody(element){
|
||||||
requestBody = "";
|
requestBody = "";
|
||||||
|
document.getElementById('code-highlight-content').innerText = "Loading...";
|
||||||
var historyRequestBody = historyJson[element.id].requestBody;
|
var historyRequestBody = historyJson[element.id].requestBody;
|
||||||
switch(historyJson[element.id].headers["content-type"]){
|
switch(historyJson[element.id].headers["content-type"]){
|
||||||
case "application/json":{
|
case "application/json":{
|
||||||
@@ -132,7 +133,6 @@ function showRequestBody(element){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "application/xml":{
|
case "application/xml":{
|
||||||
document.getElementById('code-highlight-content').innerText = "";
|
|
||||||
formatXML(historyRequestBody).then(function(result) {
|
formatXML(historyRequestBody).then(function(result) {
|
||||||
if (result.status == "OK") {
|
if (result.status == "OK") {
|
||||||
document.getElementById('code-highlight-content').innerText = result.result;
|
document.getElementById('code-highlight-content').innerText = result.result;
|
||||||
|
|||||||
Reference in New Issue
Block a user