# HG changeset patch # User Dennis Fink # Date 2016-03-01 23:16:27 # Node ID 91002a3366f404c704faa21335149903ec7a45f0 # Parent 4729289ef49b724fd559cf7c5fe30c5effdbc6a6 Country names in bold diff --git a/ennstatus/static/js/worldmap.js b/ennstatus/static/js/worldmap.js --- a/ennstatus/static/js/worldmap.js +++ b/ennstatus/static/js/worldmap.js @@ -111,7 +111,7 @@ function draw(topo) { .attr("style", "left:"+(mouse[0]+40)+"px;top:"+mouse[1]+"px") .html(function() { if (d.properties.name in data) { - var text = d.properties.name + "
Total servers: " + data[d.properties.name]['total'] + var text = "" + d.properties.name + "" + "
Total servers: " + data[d.properties.name]['total'] if ('bridge' in data[d.properties.name]) { text = text + "
Bridge servers: " + data[d.properties.name]['bridge'] } @@ -123,7 +123,7 @@ function draw(topo) { } return text } else { - return d.properties.name + return "" + d.properties.name + "" } }) })