Portals-list code cleanup, change four to two space line indent

This commit is contained in:
Kevin
2013-04-16 21:11:34 -07:00
parent bec7ae8c95
commit f38c04f13a

View File

@ -89,11 +89,12 @@ window.plugin.portalslist.getPortals = function(){
//get shield informations
var shields = [];
$.each(d.portalV2.linkedModArray, function(ind, mod) {
if (mod)
if (mod) {
//shields[ind] = mod.rarity.capitalize().replace('_', ' ');
shields[ind] = [mod.rarity.substr(0,1).capitalize(), getPlayerName(mod.installingUser)] ;
else
} else {
shields[ind] = ['', ''];
}
});
var APgain= getAttackApGain(d).enemyAp;
@ -193,7 +194,7 @@ window.plugin.portalslist.portalTable = function(sortBy, sortOrder, filter) {
retVal = b[sortBy] - a[sortBy];
break;
}
if (sortOrder > 0) { retVal = -retVal} //thx @jonatkins
if (sortOrder > 0) retVal = -retVal; //thx @jonatkins
return retVal;
});