clip panel: fix menu item disabling when switching back from annotations view
This commit is contained in:
parent
0e342cae92
commit
3eb5c229ec
1 changed files with 6 additions and 1 deletions
|
@ -192,7 +192,12 @@ Ox.ClipPanel = function(options, self) {
|
|||
? 'enableItem' : 'disableItem';
|
||||
self.options.view = data.checked[0].id;
|
||||
self.$menu[action]('split');
|
||||
self.$menu[action]('join');
|
||||
self.$menu[
|
||||
self.options.editable
|
||||
&& self.options.selected.length > 1
|
||||
&& data.checked[0].id != 'annotations'
|
||||
? 'enableItem' : 'disableItem'
|
||||
]('join');
|
||||
self.$menu[action]('replace');
|
||||
self.$panel.replaceElement(1, self.$list = getList());
|
||||
that.triggerEvent('view', {view: self.options.view});
|
||||
|
|
Loading…
Reference in a new issue