dont fail if annotation folder does not have focus
This commit is contained in:
parent
3c006f9bc5
commit
5958b9f408
1 changed files with 4 additions and 3 deletions
|
@ -504,9 +504,10 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
}
|
||||
},
|
||||
hide: function() {
|
||||
self.options.selected
|
||||
? getFolder(self.options.selected).gainFocus()
|
||||
: that.triggerEvent('focus');
|
||||
var folder = self.options.selected
|
||||
? getFolder(self.options.selected)
|
||||
: null;
|
||||
folder ? folder.gainFocus() : that.triggerEvent('focus');
|
||||
}
|
||||
})
|
||||
.appendTo(self.$menubar);
|
||||
|
|
Loading…
Reference in a new issue