bind delete in annotation folder

This commit is contained in:
j 2019-01-31 11:52:19 +05:30
commit 943d117c89
4 changed files with 25 additions and 7 deletions

View file

@ -63,6 +63,10 @@ oml.ui.viewer = function() {
console.log('change...')
console.log(annotations)
saveAnnotations()
},
'delete': function(data) {
oml.$ui.annotationFolder.find('#a-' + data.id).remove()
that.postMessage('removeAnnotation', data)
}
}