fix links
This commit is contained in:
parent
59da950a20
commit
b1ca39ff2b
1 changed files with 3 additions and 1 deletions
|
@ -574,11 +574,13 @@ pandora.ui.infoView = function(data, isMixed) {
|
||||||
pandora.api.find(request, function(response) {
|
pandora.api.find(request, function(response) {
|
||||||
response.data.items.forEach(item => {
|
response.data.items.forEach(item => {
|
||||||
if (item.id != data.id) {
|
if (item.id != data.id) {
|
||||||
|
var type = item.type ? item.type[0] : 'Unknown'
|
||||||
$element.append(
|
$element.append(
|
||||||
` <a href="/${item.id}/info">${item.type[0]}</a>`
|
` <a href="/${item.id}/info">${type}</a>`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
$element.append(`[<a href="/grid/created/title=${pandora.escapeQueryValue(title)}">all</a>]`)
|
||||||
pandora.createLinks($element)
|
pandora.createLinks($element)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue