From ab371899a64fc42821a90e7a6fe04da2c472cf98 Mon Sep 17 00:00:00 2001 From: Fragger Date: Mon, 3 Feb 2014 08:25:02 -0800 Subject: [PATCH] Fix details display showing outdated level/faction --- code/portal_detail_display.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/portal_detail_display.js b/code/portal_detail_display.js index 486e8051..8a5430c3 100644 --- a/code/portal_detail_display.js +++ b/code/portal_detail_display.js @@ -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( $('

').attr({class:'title'}).text(data.title),