kopia lustrzana https://github.com/OpenDroneMap/NodeODM
Handle errors in /task/list
rodzic
dccc51f7da
commit
315589c2de
|
@ -213,8 +213,12 @@ $(function() {
|
|||
|
||||
$.get(url)
|
||||
.done(function(tasksJson) {
|
||||
for (var i in tasksJson){
|
||||
self.tasks.push(new Task(tasksJson[i].uuid));
|
||||
if (tasksJson.error){
|
||||
self.error(tasksJson.error);
|
||||
}else{
|
||||
for (var i in tasksJson){
|
||||
self.tasks.push(new Task(tasksJson[i].uuid));
|
||||
}
|
||||
}
|
||||
})
|
||||
.fail(function() {
|
||||
|
|
Ładowanie…
Reference in New Issue