properly disable menu items when switching to annotations (in edits)

This commit is contained in:
rolux 2014-02-07 08:57:56 +00:00
parent 658b642887
commit 39c6f03bfa

View file

@ -190,7 +190,7 @@ Ox.ClipPanel = function(options, self) {
if (data.id == 'view') { if (data.id == 'view') {
var action = self.options.editable var action = self.options.editable
&& self.options.selected.length && self.options.selected.length
&& self.options.view != 'annotations' && data.checked[0].id != 'annotations'
? 'enableItem' : 'disableItem'; ? 'enableItem' : 'disableItem';
self.options.view = data.checked[0].id; self.options.view = data.checked[0].id;
self.$menu[action]('split'); self.$menu[action]('split');