diff options
author | Freeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace> | 2013-09-29 10:49:16 +1300 |
---|---|---|
committer | Freeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace> | 2013-09-29 10:49:16 +1300 |
commit | 134c9a0b1bbdff32edaccabac03759a2a90fbf5b (patch) | |
tree | 2c5d0e4e0cbbf119b82d808de9ba83bb6cb00512 | |
parent | 0a84398cb49c8658d9a1d389030d115bcb68890a (diff) | |
download | manavis-134c9a0b1bbdff32edaccabac03759a2a90fbf5b.tar.gz manavis-134c9a0b1bbdff32edaccabac03759a2a90fbf5b.tar.bz2 manavis-134c9a0b1bbdff32edaccabac03759a2a90fbf5b.tar.xz manavis-134c9a0b1bbdff32edaccabac03759a2a90fbf5b.zip |
Use map serverID if no mapping is found.
-rw-r--r-- | public/js/comp/map.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/public/js/comp/map.js b/public/js/comp/map.js index 67f71de..d0f3873 100644 --- a/public/js/comp/map.js +++ b/public/js/comp/map.js @@ -114,7 +114,11 @@ var map = function(){ }; map.nameByServerID = function(serverID, date) { /* TODO: Merged output format suitable for converting records running under different data */ - return maps[serverID]; + /* + * Now that the new server format simply outputs the human readable map name, this lookup is largely no longer required. + * It is still preserved here for backwards compatability. + */ + return serverID in maps ? maps[serverID] : serverID; } return map; }(); |