mirror of
https://github.com/gravesoft/msdl.git
synced 2026-07-25 08:34:28 +00:00
oops
This commit is contained in:
+2
-6
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user