WebUI: Fix WebAPI returned data.

This commit is contained in:
Vladimir Golovnev (Glassez)
2014-11-05 19:45:31 +03:00
parent a63d4e3400
commit 7b7f88ae4f
3 changed files with 12 additions and 5 deletions

View File

@@ -9,10 +9,15 @@
function stateChangeHandler() {
if (this.readyState == this.DONE) {
if (this.status == 200)
if (this.status == 200) {
window.parent.closeWindows();
else
alert("Upload Failed!");
} else {
if (this.responseText != "") {
alert(this.responseText);
} else {
alert("_(Upload Failed!)");
}
}
}
}