commit 9f75bbe9a9e9edb8eecd9d2cff4e77fcbb04df9f Author: cypherpunks cypherpunks@torproject.org Date: Mon Apr 17 12:39:11 2017 +0000
Set an error number when rendering the Top 10 page
Essentially this resets the error number so previous errors are forgotten.
Closes #21970. --- js/router.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/js/router.js b/js/router.js index 080a750..5219c23 100644 --- a/js/router.js +++ b/js/router.js @@ -105,8 +105,9 @@ define([
doSearchView.collection.url = "https://onionoo.torproject.org/summary?type=relay&order=-consensus_weigh..."; doSearchView.collection.lookup({ - success: function(relays){ + success: function(err){ doSearchView.relays = doSearchView.collection.models; + doSearchView.error = err; doSearchView.render(""); $("#search-title").text("Top 10 Relays by Consensus Weight"); $(".progress").hide();
tor-commits@lists.torproject.org