From 74321ebc1d49a1de462e30d9ded3cbd6e5623835 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 2 Aug 2013 16:26:08 +0000 Subject: [PATCH] disallow cut & paste when in item view --- static/js/mainMenu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/mainMenu.js b/static/js/mainMenu.js index ace66dcd..48c4de0c 100644 --- a/static/js/mainMenu.js +++ b/static/js/mainMenu.js @@ -815,7 +815,8 @@ pandora.ui.mainMenu = function() { canCopy = isVideoView ? ui.videoPoints[ui.item]['in'] != ui.videoPoints[ui.item].out : isClipView ? pandora.$ui.clipList.options('selected').length : !!ui.listSelection.length, - canPaste = !isClipView && !isVideoView && listData.editable && listData.type == 'static' && Ox.Clipboard.type() == 'item', + canPaste = !ui.item && !isClipView && !isVideoView + && listData.editable && listData.type == 'static' && Ox.Clipboard.type() == 'item', canCut = canCopy && canPaste; return { id: 'itemMenu', title: Ox._('Item'), items: [ { id: 'add', title: Ox._('Add {0}', [Ox._(pandora.site.itemName.singular)]), disabled: pandora.site.itemRequiresVideo || !pandora.site.capabilities.canAddItems[pandora.user.level] },