[tor-commits] [atlas/master] Set an error number when rendering the Top 10 page
irl at torproject.org
irl at torproject.org
Thu Apr 20 21:35:07 UTC 2017
commit 9f75bbe9a9e9edb8eecd9d2cff4e77fcbb04df9f
Author: cypherpunks <cypherpunks at 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_weight&limit=10&running=true";
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();
More information about the tor-commits
mailing list