forked from 0x2620/pandora
fix topic links on pad.ma
This commit is contained in:
parent
d91fab6935
commit
9c0206b2c4
1 changed files with 1 additions and 2 deletions
|
@ -561,10 +561,9 @@ pandora.ui.infoView = function(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatLink(key, value, linkValue) {
|
function formatLink(key, value, linkValue) {
|
||||||
linkValue = linkValue || value;
|
|
||||||
return (Ox.isArray(value) ? value : [value]).map(function(value) {
|
return (Ox.isArray(value) ? value : [value]).map(function(value) {
|
||||||
return key
|
return key
|
||||||
? '<a href="/' + key + '=' + linkValue + '">' + value + '</a>'
|
? '<a href="/' + key + '=' + (linkValue ? linkValue : value) + '">' + value + '</a>'
|
||||||
: value;
|
: value;
|
||||||
}).join(', ');
|
}).join(', ');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue