only delete own annotations
This commit is contained in:
parent
b181575a37
commit
eeee4f5a28
1 changed files with 10 additions and 6 deletions
|
@ -73,9 +73,11 @@ oml.ui.annotation = function(annotation, $iframe) {
|
|||
borderBottom: '1px solid rgb(208, 208, 208)',
|
||||
}).bindEvent({
|
||||
key_delete: function() {
|
||||
that.triggerEvent('delete', {
|
||||
id: annotation.id
|
||||
})
|
||||
if (annotation.user == oml.user.id) {
|
||||
that.triggerEvent('delete', {
|
||||
id: annotation.id
|
||||
})
|
||||
}
|
||||
}
|
||||
}).append($quote).append($notes);
|
||||
|
||||
|
@ -98,9 +100,11 @@ oml.ui.annotation = function(annotation, $iframe) {
|
|||
}
|
||||
}
|
||||
that.delete = function() {
|
||||
that.triggerEvent('delete', {
|
||||
id: annotation.id
|
||||
})
|
||||
if (annotation.user == oml.user.id) {
|
||||
that.triggerEvent('delete', {
|
||||
id: annotation.id
|
||||
})
|
||||
}
|
||||
}
|
||||
that.deselect = function() {
|
||||
that.removeClass('selected')
|
||||
|
|
Loading…
Reference in a new issue