forked from 0x2620/pandora
disallow cut & paste when in item view
This commit is contained in:
parent
6d44f6996a
commit
74321ebc1d
1 changed files with 2 additions and 1 deletions
|
@ -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] },
|
||||
|
|
Loading…
Reference in a new issue