style: remove 12px font size for some sidebar items - something changed (in the google fonts?) and they were too small
artifacts: tweaks to artifact list display portal details: fix exception when handling portal detail error responses
This commit is contained in:
@ -265,12 +265,15 @@ window.artifact.showArtifactList = function() {
|
||||
html += '<i>No artifacts at this time</i>';
|
||||
}
|
||||
|
||||
var first = true;
|
||||
$.each(artifact.artifactTypes, function(type,type2) {
|
||||
var description = artifact.getArtifactDescriptions(type);
|
||||
|
||||
var name = description ? description.title : ('unknown artifact type: '+type);
|
||||
|
||||
html += '<hr><div><b>'+name+'</b></div>';
|
||||
if (!first) html += '<hr>';
|
||||
first = false;
|
||||
html += '<div><b>'+name+'</b></div>';
|
||||
|
||||
html += '<table class="artifact artifact-'+type+'">';
|
||||
html += '<tr><th>Portal</th><th>Details</th></tr>';
|
||||
|
@ -50,24 +50,24 @@ var handleResponse = function(guid, data, success) {
|
||||
};
|
||||
}
|
||||
|
||||
var dict = {
|
||||
raw: data.result,
|
||||
type: data.result[0],
|
||||
team: data.result[1],
|
||||
latE6: data.result[2],
|
||||
lngE6: data.result[3],
|
||||
level: data.result[4],
|
||||
health: data.result[5],
|
||||
resCount: data.result[6],
|
||||
image: data.result[7],
|
||||
title: data.result[8],
|
||||
ornaments: data.result[9],
|
||||
mods: data.result[10].map(parseMod),
|
||||
resonators:data.result[11].map(parseResonator),
|
||||
owner: data.result[12],
|
||||
};
|
||||
|
||||
if (success) {
|
||||
var dict = {
|
||||
raw: data.result,
|
||||
type: data.result[0],
|
||||
team: data.result[1],
|
||||
latE6: data.result[2],
|
||||
lngE6: data.result[3],
|
||||
level: data.result[4],
|
||||
health: data.result[5],
|
||||
resCount: data.result[6],
|
||||
image: data.result[7],
|
||||
title: data.result[8],
|
||||
ornaments: data.result[9],
|
||||
mods: data.result[10].map(parseMod),
|
||||
resonators:data.result[11].map(parseResonator),
|
||||
owner: data.result[12],
|
||||
};
|
||||
|
||||
cache.store(guid,dict);
|
||||
|
||||
//FIXME..? better way of handling sidebar refreshing...
|
||||
|
Reference in New Issue
Block a user