Fail handling

This commit is contained in:
Juergen Edelbluth 2018-02-18 21:57:05 +01:00
parent ae3714f127
commit 13f07b1e28
1 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,11 @@
Object.keys(data).forEach(function(key) {
$('#' + key).text(data[key]);
})
}).fail(function() {
for (var i = 1; i <= 8; i++) {
$('#c' + i + 't').text('--.-');
$('#c' + i + 'h').text('--');
}
});
}