This commit is contained in:
Ave
2024-12-14 17:49:00 +00:00
parent cdfcaab233
commit e63098cc68
+2 -6
View File
@@ -38,10 +38,6 @@ function updateVars() {
return JSON.parse(id)['id'];
}
function updateContent(content, response) {
content.innerHTML = response;
}
function langJsonStrToHTML(jsonStr) {
let json = JSON.parse(jsonStr);
let container = document.createElement('div');
@@ -112,6 +108,7 @@ function onDownloadsXhrChange() {
let j = JSON.parse(this.responseText)
let wasSuccessful = true;
if (j["Error"]) {
processingError.style.display = "block";
wasSuccessful = false;
@@ -120,10 +117,9 @@ function onDownloadsXhrChange() {
if (pleaseWait.style.display != "block")
return;
msContent.innerHTML = this.responseText;
msContent.style.display = "block";
let wasSuccessful = updateContent(msContent, this.responseText);
if (wasSuccessful) {
pleaseWait.style.display = "none";
// if (!sharedSession) {