info view: don't make pages a link

This commit is contained in:
rlx 2016-01-12 09:33:02 +05:30
parent 66d8b7f252
commit 8ad452378d

View file

@ -130,10 +130,6 @@ oml.ui.infoView = function(externalData, isMixed) {
: '';
}
function identify(data) {
oml.$ui.identifyDialog = oml.ui.identifyDialog(data).open();
}
function renderIdentifyButton(data) {
return Ox.Button({
disabled: data.mediastate != 'available',
@ -144,7 +140,7 @@ oml.ui.infoView = function(externalData, isMixed) {
.css({marginTop: '8px'})
.bindEvent({
click: function() {
identify(data);
oml.$ui.identifyDialog = oml.ui.identifyDialog(data).open();
}
});
}
@ -550,7 +546,10 @@ oml.ui.infoView = function(externalData, isMixed) {
clickLink: oml.clickLink,
editable: isEditable,
format: function(value) {
return formatValue(
return (
Ox.contains(['series', 'language'], key)
? formatValue : Ox.identity
)(
Ox.contains(arrayKeys, key)
? splitValue(value) : value,
key