[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [atlas/master] Fix bug with flags not displaying properly



commit 82ae070eb2962e2d72b8a149684251b077df2b68
Author: Arturo Filastò <hellais@xxxxxxxxx>
Date:   Thu Mar 22 15:26:09 2012 -0700

    Fix bug with flags not displaying properly
---
 js/models/relay.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/js/models/relay.js b/js/models/relay.js
index 8a617af..7d2d68e 100644
--- a/js/models/relay.js
+++ b/js/models/relay.js
@@ -134,7 +134,8 @@ define([
                 relay.bandwidth = bw;
                 relay.family = relay.family ? relay.family : null;
                 relay.bandwidth_hr = hrBandwidth(bw);
-                relay.countryname = CountryCodes[relay.country.toLowerCase()];
+                relay.country = relay.country.toLowerCase();
+                relay.countryname = CountryCodes[relay.country];
                 relay.uptime = model.parsedate(relay.last_restarted);
                 relay.uptime_hr = relay.uptime.hr;
                 //console.log(relay.uptime.hrfull);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits