update documents panel context menu
This commit is contained in:
parent
03b5937a4d
commit
5d6c321321
1 changed files with 5 additions and 8 deletions
|
@ -229,13 +229,6 @@ pandora.ui.documentsPanel = function(options) {
|
||||||
|
|
||||||
$itemMenu = Ox.MenuButton({
|
$itemMenu = Ox.MenuButton({
|
||||||
items: isItemView ? [
|
items: isItemView ? [
|
||||||
{
|
|
||||||
id: 'add',
|
|
||||||
disabled: !pandora.site.capabilities.canManageDocuments[pandora.user.level],
|
|
||||||
title: Ox._('Add Documents to {0}...', [pandora.site.itemName.singular]),
|
|
||||||
keyboard: 'control n'
|
|
||||||
},
|
|
||||||
{},
|
|
||||||
{id: 'open', title: '', keyboard: 'return'},
|
{id: 'open', title: '', keyboard: 'return'},
|
||||||
{id: 'edit', title: ''},
|
{id: 'edit', title: ''},
|
||||||
{id: 'embed', title: Ox._('Embed Document...')},
|
{id: 'embed', title: Ox._('Embed Document...')},
|
||||||
|
@ -263,7 +256,11 @@ pandora.ui.documentsPanel = function(options) {
|
||||||
} else if (data.id == 'delete') {
|
} else if (data.id == 'delete') {
|
||||||
deleteDocuments();
|
deleteDocuments();
|
||||||
} else if (data.id == 'edit') {
|
} else if (data.id == 'edit') {
|
||||||
editDocuments();
|
pandora.UI.set({
|
||||||
|
section: 'documents',
|
||||||
|
document: ui.documentsSelection[ui.item][0],
|
||||||
|
documentView: 'info'
|
||||||
|
});
|
||||||
} else if (data.id == 'embed') {
|
} else if (data.id == 'embed') {
|
||||||
openEmbedDialog();
|
openEmbedDialog();
|
||||||
} else if (data.id == 'open') {
|
} else if (data.id == 'open') {
|
||||||
|
|
Loading…
Reference in a new issue