Fail handling
This commit is contained in:
parent
ae3714f127
commit
13f07b1e28
|
@ -5,6 +5,11 @@
|
||||||
Object.keys(data).forEach(function(key) {
|
Object.keys(data).forEach(function(key) {
|
||||||
$('#' + key).text(data[key]);
|
$('#' + key).text(data[key]);
|
||||||
})
|
})
|
||||||
|
}).fail(function() {
|
||||||
|
for (var i = 1; i <= 8; i++) {
|
||||||
|
$('#c' + i + 't').text('--.-');
|
||||||
|
$('#c' + i + 'h').text('--');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue