Compare commits
No commits in common. "86253cd60e8627d6fc1001d31fa10a8d141a0222" and "6d25d7ea42f64d636c785ac9c1685333c5eaabbb" have entirely different histories.
86253cd60e
...
6d25d7ea42
2 changed files with 9 additions and 61 deletions
|
|
@ -539,7 +539,15 @@ pandora.ui.infoView = function(data) {
|
||||||
$icon.attr({src: src});
|
$icon.attr({src: src});
|
||||||
$reflectionIcon.attr({src: src});
|
$reflectionIcon.attr({src: src});
|
||||||
}
|
}
|
||||||
if (key == 'imdbId') {
|
if (Ox.contains(nameKeys, key)) {
|
||||||
|
data['namedescription'] = result.data['namedescription'];
|
||||||
|
descriptions.names = getNames();
|
||||||
|
renderDescriptions();
|
||||||
|
} else if (key == 'productionCompany') {
|
||||||
|
data['productionCompanydescription'] = result.data['productionCompanydescription'];
|
||||||
|
descriptions.studios = getStudios();
|
||||||
|
renderDescriptions();
|
||||||
|
} else if (key == 'imdbId') {
|
||||||
updateIMDb();
|
updateIMDb();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,60 +0,0 @@
|
||||||
|
|
||||||
pandora.localInitInit = function() {
|
|
||||||
var plugins = [];
|
|
||||||
|
|
||||||
if (pandora.user.level == 'admin') {
|
|
||||||
plugins.push(ExtrasMenu());
|
|
||||||
}
|
|
||||||
|
|
||||||
plugins.length && load();
|
|
||||||
|
|
||||||
function load() {
|
|
||||||
patchReload();
|
|
||||||
plugins.forEach(function(plugin) { plugin.load() });
|
|
||||||
}
|
|
||||||
|
|
||||||
function patchReload() {
|
|
||||||
var reload = pandora.$ui.appPanel.reload;
|
|
||||||
pandora.$ui.appPanel.reload = function() {
|
|
||||||
reload();
|
|
||||||
load();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function ExtrasMenu() {
|
|
||||||
var that = {};
|
|
||||||
|
|
||||||
var css = {
|
|
||||||
//margin: '2px',
|
|
||||||
},
|
|
||||||
$item = Ox.MenuButton({
|
|
||||||
items: [
|
|
||||||
{'id': 'rename', title: 'Rename Keyword'},
|
|
||||||
{'id': 'ontology_graph', title: 'Ontology Graph'},
|
|
||||||
{'id': 'ontology', title: 'Ontology Overview'},
|
|
||||||
],
|
|
||||||
style: 'rounded',
|
|
||||||
title: 'set',
|
|
||||||
tooltip: Ox._('Extras'),
|
|
||||||
type: 'image'
|
|
||||||
}).css(css).bindEvent({
|
|
||||||
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 == 'ontology') {
|
|
||||||
pandora.openLink('/static/ontology/ontology.html');
|
|
||||||
}
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
plugins = [];
|
|
||||||
|
|
||||||
that.load = function() {
|
|
||||||
pandora.$ui.mainMenu.find('.OxExtras').prepend($item);
|
|
||||||
pandora.$ui.extraItem = $item;
|
|
||||||
};
|
|
||||||
return that;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue