From 2a1533f55f5fbd4768d230a18fe049912bdc1500 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 6 Aug 2013 10:48:08 +0000 Subject: [PATCH] main menu: don't disable clip copy/paste on annotation select --- static/js/mainMenu.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/static/js/mainMenu.js b/static/js/mainMenu.js index b7300634..07f2e9ac 100644 --- a/static/js/mainMenu.js +++ b/static/js/mainMenu.js @@ -728,9 +728,12 @@ pandora.ui.mainMenu = function() { that.setItemTitle('showtimeline', Ox._((data.value ? 'Hide' : 'Show') + ' Timeline')); }, pandora_videopoints: function(data) { - var action = data.value['in'] != data.value.out ? 'enableItem' : 'disableItem'; - that[action]('copy'); - that[action]('copyadd'); + var action; + if (data.value['in']) { + action = data.value['in'] != data.value.out ? 'enableItem' : 'disableItem'; + that[action]('copy'); + that[action]('copyadd'); + } }, pandora_videotimeline: function(data) { that.checkItem('viewMenu_timelines_' + data.value);