From e2c5da26f2cadade7b1768e10c2a6329743dad0a Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 19 Nov 2014 16:05:48 +0000 Subject: [PATCH] add 'Manage Entities...' to main menu --- static/js/mainMenu.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/mainMenu.js b/static/js/mainMenu.js index efd425894..c2edd8857 100644 --- a/static/js/mainMenu.js +++ b/static/js/mainMenu.js @@ -197,6 +197,7 @@ pandora.ui.mainMenu = function() { getFindMenu(), { id: 'dataMenu', title: Ox._('Data'), items: [ { id: 'documents', title: Ox._('Manage Documents...'), disabled: !pandora.site.capabilities.canManageDocuments[pandora.user.level] }, + { id: 'entities', title: Ox._('Manage Entities...'), disabled: !pandora.site.capabilities.canManageEntities[pandora.user.level] }, {}, { id: 'titles', title: Ox._('Manage Titles...'), disabled: !pandora.site.capabilities.canManageTitlesAndNames[pandora.user.level] }, { id: 'names', title: Ox._('Manage Names...'), disabled: !pandora.site.capabilities.canManageTitlesAndNames[pandora.user.level] }, @@ -491,6 +492,8 @@ pandora.ui.mainMenu = function() { pandora.$ui.similarClipsDialog = pandora.ui.similarClipsDialog().open(); } else if (data.id == 'documents') { pandora.$ui.documentsDialog = pandora.ui.documentsDialog().open(); + } else if (data.id == 'entities') { + pandora.$ui.entitiesDialog = pandora.ui.entitiesDialog().open(); } else if (data.id == 'titles') { (pandora.$ui.titlesDialog || ( pandora.$ui.titlesDialog = pandora.ui.titlesDialog()