forked from 0x2620/pandora
format date
This commit is contained in:
parent
40c8c52180
commit
03bd598785
1 changed files with 3 additions and 1 deletions
|
@ -543,7 +543,9 @@ pandora.ui.infoView = function(data, isMixed) {
|
||||||
|
|
||||||
function formatValue(key, value) {
|
function formatValue(key, value) {
|
||||||
var ret;
|
var ret;
|
||||||
if (nameKeys.indexOf(key) > -1) {
|
if (key == 'date' && (!value || value.split('-').length < 4)) {
|
||||||
|
ret = pandora.formatDate(value);
|
||||||
|
elif (nameKeys.indexOf(key) > -1) {
|
||||||
ret = formatLink(value.split(', '), 'name');
|
ret = formatLink(value.split(', '), 'name');
|
||||||
} else if (
|
} else if (
|
||||||
listKeys.indexOf(key) > -1 && Ox.getObjectById(pandora.site.itemKeys, key).type[0] == 'date'
|
listKeys.indexOf(key) > -1 && Ox.getObjectById(pandora.site.itemKeys, key).type[0] == 'date'
|
||||||
|
|
Loading…
Reference in a new issue