1
0
Fork 0
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:
rlx 2012-02-19 14:37:55 +00:00
commit 6a9707ed0b
3 changed files with 14 additions and 16 deletions

View file

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