
commit f6f5a7b14bb3c6e51d1b970a4b6139c0f4d84e65 Author: Iain R. Learmonth <irl@fsfe.org> Date: Sun Nov 26 15:43:47 2017 +0000 Fix handling of secondary search on Top Relays page --- js/router.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/router.js b/js/router.js index c22bcf9..8052f82 100644 --- a/js/router.js +++ b/js/router.js @@ -166,9 +166,9 @@ define([ showTopRelays: function(){ $(".breadcrumb").html("<li><a href=\"https://metrics.torproject.org/\">Home</a></li><li><a href=\"https://metrics.torproject.org/services.html\">Services</a></li><li><a href=\"#\">Relay Search</a></li><li class=\"active\">Top Relays</li>"); - $("#secondary-search").show(); $("#secondary-search-query").val(""); + $("#secondary-search").hide(); $("#content").hide(); $(".progress").show(); @@ -181,6 +181,7 @@ define([ $("#search-title").text("Top Relays by Consensus Weight"); $(".progress").hide(); $("#content").show(); + $("#secondary-search").show(); }, error: function(erno){ @@ -188,6 +189,7 @@ define([ doSearchView.renderError(); $(".progress").hide(); $("#content").show(); + $("#secondary-search").show(); } }); },