add some annotation capability
This commit is contained in:
parent
4810a7ee97
commit
e89dc03685
2 changed files with 18 additions and 8 deletions
|
|
@ -55,7 +55,9 @@ oml.ui.viewer = function() {
|
|||
console.log('got', event, data)
|
||||
if (event == 'addAnnotation') {
|
||||
console.log('adding', data.id)
|
||||
oml.$ui.annotationFolder.append(oml.ui.annotation(data, $iframe));
|
||||
var $annotation = oml.ui.annotation(data, $iframe)
|
||||
oml.$ui.annotationFolder.append($annotation);
|
||||
$annotation.annotate();
|
||||
} else if (event == 'removeAnnotation') {
|
||||
console.log('do it ...', data)
|
||||
oml.$ui.annotationFolder.find('#a-' + data.id).remove()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue