info view: don't make pages a link
This commit is contained in:
parent
66d8b7f252
commit
8ad452378d
1 changed files with 5 additions and 6 deletions
|
@ -130,10 +130,6 @@ oml.ui.infoView = function(externalData, isMixed) {
|
||||||
: '';
|
: '';
|
||||||
}
|
}
|
||||||
|
|
||||||
function identify(data) {
|
|
||||||
oml.$ui.identifyDialog = oml.ui.identifyDialog(data).open();
|
|
||||||
}
|
|
||||||
|
|
||||||
function renderIdentifyButton(data) {
|
function renderIdentifyButton(data) {
|
||||||
return Ox.Button({
|
return Ox.Button({
|
||||||
disabled: data.mediastate != 'available',
|
disabled: data.mediastate != 'available',
|
||||||
|
@ -144,7 +140,7 @@ oml.ui.infoView = function(externalData, isMixed) {
|
||||||
.css({marginTop: '8px'})
|
.css({marginTop: '8px'})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
click: function() {
|
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,
|
clickLink: oml.clickLink,
|
||||||
editable: isEditable,
|
editable: isEditable,
|
||||||
format: function(value) {
|
format: function(value) {
|
||||||
return formatValue(
|
return (
|
||||||
|
Ox.contains(['series', 'language'], key)
|
||||||
|
? formatValue : Ox.identity
|
||||||
|
)(
|
||||||
Ox.contains(arrayKeys, key)
|
Ox.contains(arrayKeys, key)
|
||||||
? splitValue(value) : value,
|
? splitValue(value) : value,
|
||||||
key
|
key
|
||||||
|
|
Loading…
Add table
Reference in a new issue