From 20ed666552647114b9334d712b22ca7c28cced3a Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sat, 24 May 2014 04:30:00 +0100 Subject: [PATCH] add empty mod slots - server no longer returns all 4, and it looks odd with empty space --- code/portal_detail_display_tools.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/portal_detail_display_tools.js b/code/portal_detail_display_tools.js index 389a46c9..364bccf8 100644 --- a/code/portal_detail_display_tools.js +++ b/code/portal_detail_display_tools.js @@ -138,7 +138,10 @@ window.getModDetails = function(d) { for (var i=0; i'+mods[i]+'' } - + // and add blank entries if we have less than 4 mods (as the server no longer returns all mod slots, but just the filled ones) + for (var i=mods.length; i<4; i++) { + t += '' + } return t; }