add delete quote button

This commit is contained in:
j 2019-02-02 23:31:55 +05:30
commit 925967ddf0
4 changed files with 29 additions and 3 deletions

View file

@ -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 {