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

[tor-commits] [atlas/master] Fix country display in search results



commit e4ba1baac62cfa6109bae5f47b11aa9b3f4b0177
Author: Arturo Filastò <hellais@xxxxxxxxx>
Date:   Fri Mar 2 16:18:09 2012 -0800

    Fix country display in search results
---
 js/models/relay.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/js/models/relay.js b/js/models/relay.js
index c0f5a10..f43593c 100644
--- a/js/models/relay.js
+++ b/js/models/relay.js
@@ -133,7 +133,7 @@ define([
                 var bw = relay.advertised_bandwidth;
                 relay.bandwidth = bw;
                 relay.bandwidth_hr = hrBandwidth(bw);
-                relay.countryname = CountryCodes[relay.country];
+                relay.countryname = CountryCodes[relay.country.toLowerCase()];
                 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