clip panel: fix menu item disabling when switching back from annotations view

This commit is contained in:
rolux 2014-02-08 20:13:10 +00:00
parent 0e342cae92
commit 3eb5c229ec

View file

@ -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});