add delete quote button
This commit is contained in:
parent
0c2ad46e71
commit
925967ddf0
4 changed files with 29 additions and 3 deletions
|
|
@ -98,6 +98,7 @@ oml.ui.viewer = function() {
|
|||
var $annotation = oml.ui.annotation(data, $iframe).bindEvent(annotationEvents)
|
||||
oml.$ui.annotationFolder.append($annotation);
|
||||
$annotation.annotate();
|
||||
oml.$ui.annotationPanel.updateSelection(false)
|
||||
} else if (event == 'removeAnnotation') {
|
||||
oml.$ui.annotationFolder.find('#a-' + data.id).remove()
|
||||
removeAnnotation(data.id)
|
||||
|
|
@ -109,6 +110,7 @@ oml.ui.viewer = function() {
|
|||
var $annotation = oml.$ui.annotationFolder.find('.OMLAnnotation.selected')
|
||||
$annotation.length && $annotation.deselect()
|
||||
}
|
||||
oml.$ui.annotationPanel.updateSelection(false)
|
||||
} else if (event == 'selectText') {
|
||||
oml.$ui.annotationPanel.updateSelection(data)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue