summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace>2013-09-29 10:49:16 +1300
committerFreeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace>2013-09-29 10:49:16 +1300
commit134c9a0b1bbdff32edaccabac03759a2a90fbf5b (patch)
tree2c5d0e4e0cbbf119b82d808de9ba83bb6cb00512
parent0a84398cb49c8658d9a1d389030d115bcb68890a (diff)
downloadmanavis-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.js6
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;
}();