Merge branch '107' of git://github.com/phoenixsong6/ingress-intel-total-conversion into phoenixsong6-107

This commit is contained in:
Stefan Breunig
2013-02-11 16:46:43 +01:00

View File

@ -116,10 +116,15 @@ window.handleDataResponse = function(data, textStatus, jqXHR) {
});
$.each(ppp, function(ind, portal) {
if(p2f[portal[0]] === undefined)
if(portal[2].portalV2['linkedFields'] === undefined) {
portal[2].portalV2['linkedFields'] = [];
else
portal[2].portalV2['linkedFields'] = $.unique(p2f[portal[0]]);
}
if(p2f[portal[0]] !== undefined) {
$.merge(p2f[portal[0]], portal[2].portalV2['linkedFields']);
portal[2].portalV2['linkedFields'] = $.grep(p2f[portal[0]], function(v, i) {
return $.inArray(v, p2f[portal[0]]) === i;
});
}
});
$.each(ppp, function(ind, portal) { renderPortal(portal); });