From d7fd474c589c36d3cbc8b18fd03fb9fd8506a85b Mon Sep 17 00:00:00 2001 From: j Date: Fri, 10 Aug 2018 15:00:09 +0100 Subject: [PATCH] refine menu --- config.jsonc | 4 ++-- static/js/localInit.cms.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config.jsonc b/config.jsonc index d7bff84..d676ca5 100644 --- a/config.jsonc +++ b/config.jsonc @@ -1082,8 +1082,8 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution. "title": "Subtitles", "canAddAnnotations": {"staff": true, "admin": true}, "canPlayClips": true, - "hasEvents": true, - "hasPlaces": true, + "hasEvents": false, + "hasPlaces": false, "isSubtitles": true, "item": "Subtitle", "type": "text" diff --git a/static/js/localInit.cms.js b/static/js/localInit.cms.js index dcda39f..60deb07 100644 --- a/static/js/localInit.cms.js +++ b/static/js/localInit.cms.js @@ -2,9 +2,7 @@ pandora.localInit = function() { var plugins = []; - if (pandora.user.level == 'admin') { - plugins.push(ExtrasMenu()); - } + plugins.push(ExtrasMenu()); plugins.length && load(); @@ -29,11 +27,13 @@ pandora.localInit = function() { }, $item = Ox.MenuButton({ items: [ + ].concat(pandora.user.level == 'admin' ? [ {id: 'rename', title: 'Rename Keyword...'}, {id: 'manage', title: 'Manage Keywords...'}, + ] : [], [ {id: 'correlations', title: 'Show Correlations...'}, {id: 'ontology', title: 'Open Ontology Graph'}, - ], + ]), style: 'rounded', title: 'set', tooltip: Ox._('Extras'),