From 8ad452378d0f68672f00c51394db8c0a9e0e1ea0 Mon Sep 17 00:00:00 2001 From: rlx Date: Tue, 12 Jan 2016 09:33:02 +0530 Subject: [PATCH] info view: don't make pages a link --- static/js/infoView.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/static/js/infoView.js b/static/js/infoView.js index a4f8eab..cca5983 100644 --- a/static/js/infoView.js +++ b/static/js/infoView.js @@ -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