- Fixed broken "faction" logo imgage urls on new image server, closed #872
This commit is contained in:
@@ -166,7 +166,7 @@ define([
|
||||
fwContestedRow.find('.' + config.systemSovFwPercentageClass).text(percentage);
|
||||
fwContestedRow.show();
|
||||
|
||||
let occupierFactionImage = Util.eveImageUrl('alliances', (occupierFaction ? occupierFaction.id : 0), 64);
|
||||
let occupierFactionImage = Util.eveImageUrl('factions', (occupierFaction ? occupierFaction.id : 0), 64);
|
||||
let occupierFactionName = occupierFaction ? occupierFaction.name : '';
|
||||
|
||||
fwOccupationRow.find('.' + config.systemSovFwOccupationImageClass)[0].style.setProperty('--bg-image', 'url(\'' + occupierFactionImage + '\')');
|
||||
@@ -310,7 +310,7 @@ define([
|
||||
if(sovDataFact){
|
||||
sovereigntyPrimary = {
|
||||
row1Val: 'Faction',
|
||||
row1Img: Util.eveImageUrl('alliances', sovDataFact.id, 64),
|
||||
row1Img: Util.eveImageUrl('factions', sovDataFact.id, 64),
|
||||
row1ImgTitle: sovDataFact.name,
|
||||
row2Val: sovDataFact.name
|
||||
};
|
||||
|
||||
@@ -552,7 +552,7 @@ define([
|
||||
if (!last || last.id !== group.id) {
|
||||
// "stations" are grouped by "raceId" with its "factionId"
|
||||
// "structures" are grouped by "corporationId" that ADDED it (not the ingame "owner" of it)
|
||||
let imgType = 'stations' === group.groupedDataKey ? 'alliances' : 'corporations';
|
||||
let imgType = 'stations' === group.groupedDataKey ? 'factions' : 'corporations';
|
||||
|
||||
$(rows).eq(i).before(
|
||||
'<tr class="group">' +
|
||||
|
||||
@@ -873,6 +873,7 @@ define([
|
||||
|
||||
if(!resourceVariant){
|
||||
switch(resourceType){
|
||||
case 'factions': resourceType = 'corporations'; // faction icons are on 'corporations' endpoint.. CCP fail?!
|
||||
case 'alliances':
|
||||
case 'corporations': resourceVariant = 'logo'; break;
|
||||
case 'characters': resourceVariant = 'portrait'; break;
|
||||
|
||||
@@ -166,7 +166,7 @@ define([
|
||||
fwContestedRow.find('.' + config.systemSovFwPercentageClass).text(percentage);
|
||||
fwContestedRow.show();
|
||||
|
||||
let occupierFactionImage = Util.eveImageUrl('alliances', (occupierFaction ? occupierFaction.id : 0), 64);
|
||||
let occupierFactionImage = Util.eveImageUrl('factions', (occupierFaction ? occupierFaction.id : 0), 64);
|
||||
let occupierFactionName = occupierFaction ? occupierFaction.name : '';
|
||||
|
||||
fwOccupationRow.find('.' + config.systemSovFwOccupationImageClass)[0].style.setProperty('--bg-image', 'url(\'' + occupierFactionImage + '\')');
|
||||
@@ -310,7 +310,7 @@ define([
|
||||
if(sovDataFact){
|
||||
sovereigntyPrimary = {
|
||||
row1Val: 'Faction',
|
||||
row1Img: Util.eveImageUrl('alliances', sovDataFact.id, 64),
|
||||
row1Img: Util.eveImageUrl('factions', sovDataFact.id, 64),
|
||||
row1ImgTitle: sovDataFact.name,
|
||||
row2Val: sovDataFact.name
|
||||
};
|
||||
|
||||
@@ -552,7 +552,7 @@ define([
|
||||
if (!last || last.id !== group.id) {
|
||||
// "stations" are grouped by "raceId" with its "factionId"
|
||||
// "structures" are grouped by "corporationId" that ADDED it (not the ingame "owner" of it)
|
||||
let imgType = 'stations' === group.groupedDataKey ? 'alliances' : 'corporations';
|
||||
let imgType = 'stations' === group.groupedDataKey ? 'factions' : 'corporations';
|
||||
|
||||
$(rows).eq(i).before(
|
||||
'<tr class="group">' +
|
||||
|
||||
@@ -873,6 +873,7 @@ define([
|
||||
|
||||
if(!resourceVariant){
|
||||
switch(resourceType){
|
||||
case 'factions': resourceType = 'corporations'; // faction icons are on 'corporations' endpoint.. CCP fail?!
|
||||
case 'alliances':
|
||||
case 'corporations': resourceVariant = 'logo'; break;
|
||||
case 'characters': resourceVariant = 'portrait'; break;
|
||||
|
||||
Reference in New Issue
Block a user