Fix details display showing outdated level/faction
This commit is contained in:
parent
6bc055491f
commit
ab371899a6
@ -83,9 +83,8 @@ window.renderPortalDetails = function(guid) {
|
||||
}
|
||||
|
||||
// portal level. start with basic data - then extend with fractional info in tooltip if available
|
||||
//FIXME: use details or data if possible, to avoid ambiguity
|
||||
var levelInt = portal.options.level;
|
||||
var levelDetails = portal.options.level;
|
||||
var levelInt = data.level;
|
||||
var levelDetails = data.level;
|
||||
if (details) {
|
||||
levelDetails = getPortalLevel(details);
|
||||
if(levelDetails != 8) {
|
||||
@ -126,7 +125,7 @@ window.renderPortalDetails = function(guid) {
|
||||
|
||||
$('#portaldetails')
|
||||
.html('') //to ensure it's clear
|
||||
.attr('class', TEAM_TO_CSS[portal.options.team]) //FIXME: use details/data if possible, to avoid ambiguity
|
||||
.attr('class', TEAM_TO_CSS[teamStringToId(data.team)])
|
||||
.append(
|
||||
$('<h3>').attr({class:'title'}).text(data.title),
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user