From 5d6c321321ed7f6cc3725d9d5ed7efd3ed0bb4b8 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 27 Nov 2016 19:44:10 +0100 Subject: [PATCH] update documents panel context menu --- static/js/documentsPanel.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/static/js/documentsPanel.js b/static/js/documentsPanel.js index 265f8b66..814832d1 100644 --- a/static/js/documentsPanel.js +++ b/static/js/documentsPanel.js @@ -229,13 +229,6 @@ pandora.ui.documentsPanel = function(options) { $itemMenu = Ox.MenuButton({ 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: 'edit', title: ''}, {id: 'embed', title: Ox._('Embed Document...')}, @@ -263,7 +256,11 @@ pandora.ui.documentsPanel = function(options) { } else if (data.id == 'delete') { deleteDocuments(); } else if (data.id == 'edit') { - editDocuments(); + pandora.UI.set({ + section: 'documents', + document: ui.documentsSelection[ui.item][0], + documentView: 'info' + }); } else if (data.id == 'embed') { openEmbedDialog(); } else if (data.id == 'open') {