[show-linked-portal] use portal details for preview if cached
This commit is contained in:
parent
4853542265
commit
d881a5a6a9
@ -60,9 +60,8 @@ window.plugin.showLinkedPortal.portalDetail = function (data) {
|
|||||||
|
|
||||||
var title;
|
var title;
|
||||||
|
|
||||||
if(portals[guid]) {
|
var data = (portals[guid] && portals[guid].options.data) || portalDetail.get(guid) || null;
|
||||||
var data = portals[guid].options.data;
|
if(data) {
|
||||||
|
|
||||||
title = data.title;
|
title = data.title;
|
||||||
div.append($('<img/>').attr({
|
div.append($('<img/>').attr({
|
||||||
'src': fixPortalImageUrl(data.image),
|
'src': fixPortalImageUrl(data.image),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user