format links
This commit is contained in:
parent
7507257e51
commit
2df0ff50a0
1 changed files with 2 additions and 3 deletions
|
@ -644,13 +644,12 @@ pandora.ui.infoView = function(data, isMixed) {
|
|||
var ret;
|
||||
if (key == 'date' && (!value || value.split('-').length < 4)) {
|
||||
ret = pandora.formatDate(value);
|
||||
} else if (listKeys.indexOf(key) > -1) {
|
||||
ret = value.split(', ');
|
||||
} else if (key == 'links') {
|
||||
ret = value.split(', ').map(function(link) {
|
||||
return '<a href="' + link + '">' + Ox.parseURL(link).host + '</a>';
|
||||
}).join(', ');
|
||||
|
||||
} else if (listKeys.indexOf(key) > -1) {
|
||||
ret = value.split(', ');
|
||||
} else {
|
||||
ret = value;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue