fix name
This commit is contained in:
parent
86896b6c52
commit
203e67a017
@ -52,10 +52,10 @@ onready(function() {
|
|||||||
var ajax = new XMLHttpRequest();
|
var ajax = new XMLHttpRequest();
|
||||||
ajax.onreadystatechange = function() {
|
ajax.onreadystatechange = function() {
|
||||||
if (ajax.readyState == 4) {
|
if (ajax.readyState == 4) {
|
||||||
if(ajax.statusCode == 201) {
|
if(ajax.status == 201) {
|
||||||
// success
|
// success
|
||||||
cb(null);
|
cb(null);
|
||||||
} else if (ajax.statusCode == 200) {
|
} else if (ajax.status == 200) {
|
||||||
var err = "unknown error";
|
var err = "unknown error";
|
||||||
try {
|
try {
|
||||||
var j = JSON.parse(ajax.responseText);
|
var j = JSON.parse(ajax.responseText);
|
||||||
@ -65,7 +65,7 @@ onready(function() {
|
|||||||
}
|
}
|
||||||
cb(err);
|
cb(err);
|
||||||
} else {
|
} else {
|
||||||
cb("http "+ajax.statusCode);
|
cb("http "+ajax.status);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
elem.innerHTML += ".";
|
elem.innerHTML += ".";
|
||||||
|
Reference in New Issue
Block a user