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]
|
||||
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) {
|
||||
data.notes = [note]
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue