Fix the link on the place name to use the right hifiurl

On the place list, the link to a place uses the placename for a local place or the address for a federated or external place
the link on the name was still using directly the address while the other parts (cell background and description) were using the variable.
This commit is contained in:
Alezia Kurdis 2023-07-19 21:54:10 -04:00 committed by GitHub
parent 72137f52f7
commit 6669dc9d86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -432,7 +432,7 @@
formatedList = formatedList + "<table class='placeTable'>";
formatedList = formatedList + " <tr valign = 'top'>";
formatedList = formatedList + " <td width='2%'></td>";
formatedList = formatedList + " <td align='left' width='75%' onclick='teleport(" + '"' + placeRecords[i].id + '"' + ", " + '"' + placeUrl + '"' + "); return false;'><a class= 'placeTitle' href='javascript:void(0)' onclick='teleport(" + '"' + placeRecords[i].id + '"' + ", " + '"' + placeRecords[i].address + '"' + "); return false;'>" + placeRecords[i].name + "</a></td>";
formatedList = formatedList + " <td align='left' width='75%' onclick='teleport(" + '"' + placeRecords[i].id + '"' + ", " + '"' + placeUrl + '"' + "); return false;'><a class= 'placeTitle' href='javascript:void(0)' onclick='teleport(" + '"' + placeRecords[i].id + '"' + ", " + '"' + placeUrl + '"' + "); return false;'>" + placeRecords[i].name + "</a></td>";
if (placeRecords[i].category !== "Z") {
formatedList = formatedList + " <td align='right' ><span style='padding: 0%; cursor: pointer;' onclick='openDetail(" + '"' + placeRecords[i].id + '"' + ")'><img src='icons/info.png' width='26' height='26' draggable='false'></span></td>";
}