add rename keword dialog; minor cosmetic updates

This commit is contained in:
rlx 2018-08-09 17:02:18 +01:00
commit b57676650c
2 changed files with 191 additions and 6 deletions

View file

@ -29,9 +29,9 @@ pandora.localInit = function() {
},
$item = Ox.MenuButton({
items: [
{'id': 'rename', title: 'Rename Keyword'},
{'id': 'ontology_graph', title: 'Ontology Graph'},
{'id': 'ontology', title: 'Ontology Overview'},
{id: 'rename', title: 'Rename Keyword...'},
{id: 'manage', title: 'Manage Keywords...'},
{id: 'ontology', title: 'Open Ontology Graph'},
],
style: 'rounded',
title: 'set',
@ -41,10 +41,10 @@ pandora.localInit = function() {
click: function(data) {
if (data.id == 'rename') {
pandora.ui.renameKeywordDialog().open()
} else if (data.id == 'ontology_graph') {
pandora.openLink('/static/ontology/');
} else if (data.id == 'manage') {
pandora.ui.manageKeywordsDialog().open()
} else if (data.id == 'ontology') {
pandora.openLink('/static/ontology/ontology.html');
pandora.openLink('/static/ontology/');
}
},
}),