From 4073e56856b62d9bb5bdd53c89eeb9f166e68557 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sat, 8 Jun 2013 19:17:21 +0100 Subject: [PATCH] convert underscores to spaces in stat names returned from the server --- code/portal_detail_display_tools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/portal_detail_display_tools.js b/code/portal_detail_display_tools.js index 446f141f..60585b77 100644 --- a/code/portal_detail_display_tools.js +++ b/code/portal_detail_display_tools.js @@ -42,7 +42,7 @@ window.getModDetails = function(d) { title += '\nStats:'; for (var key in mod.stats) { if (!mod.stats.hasOwnProperty(key)) continue; - title += '\n+' + mod.stats[key] + ' ' + key.capitalize(); + title += '\n+' + mod.stats[key] + ' ' + key.capitalize().replace(/_/g,' '); } mods.push(mod.rarity.capitalize().replace('_', ' ') + ' ' + mod.displayName);