add annotations to db
This commit is contained in:
parent
9ef452832d
commit
edbe4da011
1 changed files with 4 additions and 1 deletions
|
@ -61,7 +61,10 @@ oml.ui.viewer = function() {
|
||||||
note = data.notes[0]
|
note = data.notes[0]
|
||||||
delete data.notes
|
delete data.notes
|
||||||
}
|
}
|
||||||
oml.api.addAnnotation(data)
|
var a = Ox.extend({}, data)
|
||||||
|
a.created = a.created || (new Date).toISOString();
|
||||||
|
a.item = ui.item
|
||||||
|
oml.api.addAnnotation(a)
|
||||||
if (note) {
|
if (note) {
|
||||||
data.notes = [note]
|
data.notes = [note]
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue