From 679160e641af5e41049f2486ca0ef833a3cfbf9c Mon Sep 17 00:00:00 2001
From: j <0x006A@0x2620.org>
Date: Sat, 19 Apr 2014 20:46:29 +0000
Subject: [PATCH] pass raw date value to query, fixes #2375
---
static/js/infoView.padma.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/static/js/infoView.padma.js b/static/js/infoView.padma.js
index c89dca37..770cc867 100644
--- a/static/js/infoView.padma.js
+++ b/static/js/infoView.padma.js
@@ -536,10 +536,11 @@ pandora.ui.infoView = function(data) {
return '' + str + '';
}
- function formatLink(key, value) {
+ function formatLink(key, value, linkValue) {
+ linkValue = linkValue || value;
return (Ox.isArray(value) ? value : [value]).map(function(value) {
return key
- ? '' + value + ''
+ ? '' + value + ''
: value;
}).join(', ');
}
@@ -558,7 +559,7 @@ pandora.ui.infoView = function(data) {
if (nameKeys.indexOf(key) > -1) {
key = 'name';
}
- return formatLink(key, ret);
+ return formatLink(key, ret, key == 'date' && value);
}
function getRightsLevelElement(rightsLevel) {