forked from 0x2620/oxjs
fix a bug where pressing delete would not remove an annotation if the video editor had focus (fixes #477)
This commit is contained in:
parent
bd5b6f8230
commit
6a9707ed0b
3 changed files with 14 additions and 16 deletions
|
|
@ -486,11 +486,17 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
renderEditMenu();
|
||||
};
|
||||
|
||||
that.removeItem = function() {
|
||||
self.options.selected = '';
|
||||
self.users = getUsers();
|
||||
renderOptionsMenu();
|
||||
renderEditMenu();
|
||||
that.removeItem = function(remove) {
|
||||
if (remove) {
|
||||
// remove initiated by video editor
|
||||
getFolder(self.options.selected).removeItem();
|
||||
} else {
|
||||
// called from removeannotation callback
|
||||
self.options.selected = '';
|
||||
self.users = getUsers();
|
||||
renderOptionsMenu();
|
||||
renderEditMenu();
|
||||
}
|
||||
};
|
||||
|
||||
that.updateItem = function(id, item) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue