migrate again
This commit is contained in:
parent
edbe4da011
commit
b181575a37
1 changed files with 8 additions and 3 deletions
|
@ -93,9 +93,14 @@ oml.ui.viewer = function() {
|
||||||
oml.api.getAnnotations({
|
oml.api.getAnnotations({
|
||||||
id: ui.item
|
id: ui.item
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
console.log(result)
|
if (!result.data.annotations.length && localStorage[oml.user.ui.item + '.annotations_']) {
|
||||||
annotations = result.data.annotations
|
localStorage[oml.user.ui.item + '.annotations'] = localStorage[oml.user.ui.item + '.annotations_']
|
||||||
callback && callback(annotations)
|
loadAnnotations(callback)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
annotations = result.data.annotations
|
||||||
|
callback && callback(annotations)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue