Plugin Show Linked Portals: Use default portal image if linked portal has no image
This commit is contained in:
parent
7e647228ce
commit
c60cf76639
@ -79,7 +79,7 @@ window.plugin.showLinkedPortal.getPortalByGuid = function (guid) {
|
|||||||
portalInfoString = '';
|
portalInfoString = '';
|
||||||
var portalNameAdressAlt = "'" + portalDetails.portalV2.descriptiveText.TITLE + "' (" + portalDetails.portalV2.descriptiveText.ADDRESS + ")";
|
var portalNameAdressAlt = "'" + portalDetails.portalV2.descriptiveText.TITLE + "' (" + portalDetails.portalV2.descriptiveText.ADDRESS + ")";
|
||||||
var portalNameAdressTitle = "'<strong>" + portalDetails.portalV2.descriptiveText.TITLE + "</strong>'<br/> <em>(" + portalDetails.portalV2.descriptiveText.ADDRESS + ")</em>";
|
var portalNameAdressTitle = "'<strong>" + portalDetails.portalV2.descriptiveText.TITLE + "</strong>'<br/> <em>(" + portalDetails.portalV2.descriptiveText.ADDRESS + ")</em>";
|
||||||
var imageUrl = (portalDetails.imageByUrl ? portalDetails.imageByUrl.imageUrl : '');
|
var imageUrl = (portalDetails.imageByUrl ? portalDetails.imageByUrl.imageUrl : window.DEFAULT_PORTAL_IMG);
|
||||||
portalInfoString = '<img src="' + imageUrl + '" class="minImg" alt="' + portalNameAdressAlt + '" title="' + portalNameAdressTitle + '"/>';
|
portalInfoString = '<img src="' + imageUrl + '" class="minImg" alt="' + portalNameAdressAlt + '" title="' + portalNameAdressTitle + '"/>';
|
||||||
}
|
}
|
||||||
return portalInfoString;
|
return portalInfoString;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user