From 39c6f03bfa1d3452c17dee5c97713c041b105393 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 7 Feb 2014 08:57:56 +0000 Subject: [PATCH] properly disable menu items when switching to annotations (in edits) --- source/Ox.UI/js/Video/ClipPanel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/ClipPanel.js b/source/Ox.UI/js/Video/ClipPanel.js index 7071ac4b..d4c6c56f 100644 --- a/source/Ox.UI/js/Video/ClipPanel.js +++ b/source/Ox.UI/js/Video/ClipPanel.js @@ -190,7 +190,7 @@ Ox.ClipPanel = function(options, self) { if (data.id == 'view') { var action = self.options.editable && self.options.selected.length - && self.options.view != 'annotations' + && data.checked[0].id != 'annotations' ? 'enableItem' : 'disableItem'; self.options.view = data.checked[0].id; self.$menu[action]('split');