fixed #21
This commit is contained in:
parent
b482c546a4
commit
7d59588601
1 changed files with 4 additions and 3 deletions
|
@ -74,16 +74,17 @@ function(Core, Paths, HostApp, URI) {
|
||||||
var http_method = "GET";
|
var http_method = "GET";
|
||||||
var callback = function(resp) {
|
var callback = function(resp) {
|
||||||
|
|
||||||
|
those.reload_blocked = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var json = JSON.parse(resp.responseText)
|
var json = JSON.parse(resp.responseText)
|
||||||
|
those.newStatus(json);
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
//alert(resp.responseText);
|
//alert(resp.responseText);
|
||||||
alert(url + " JSON parse error");
|
alert(url + " JSON parse error");
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
those.newStatus(json);
|
|
||||||
those.reload_blocked = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var data = null;
|
var data = null;
|
||||||
|
|
Reference in a new issue