data format change: portal details 'portalV2.descriptiveText' is now 'descriptiveText.map'. fields within this seem the same

needed to fix things after the stock intel site update of 2014-02-05
This commit is contained in:
Jon Atkins
2014-02-06 05:08:18 +00:00
parent 6797cf7e8b
commit 77cf149fef
4 changed files with 9 additions and 9 deletions

View File

@ -24,7 +24,7 @@ window.getRangeText = function(d) {
// generates description text from details for portal
window.getPortalDescriptionFromDetails = function(details) {
var descObj = details.portalV2.descriptiveText;
var descObj = details.descriptiveText.map;
// FIXME: also get real description?
var desc = descObj.TITLE;
if(descObj.ADDRESS)
@ -37,7 +37,7 @@ window.getPortalDescriptionFromDetails = function(details) {
// Grabs more info, including the submitter name for the current main
// portal image
window.getPortalDescriptionFromDetailsExtended = function(details) {
var descObj = details.portalV2.descriptiveText;
var descObj = details.descriptiveText.map;
var photoStreamObj = details.photoStreamInfo;
var submitterObj = new Object();