Ticket #21970: 0001-Set-an-error-number-when-rendering-the-Top-10-page.patch

File 0001-Set-an-error-number-when-rendering-the-Top-10-page.patch, 1.1 KB (added by cypherpunks, 3 years ago)
  • js/router.js

    From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
    From: cypherpunks <cypherpunks@torproject.org>
    Date: Mon, 17 Apr 2017 12:39:11 +0000
    Subject: [PATCH] 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 b define([ 
    105105
    106106        doSearchView.collection.url = "https://onionoo.torproject.org/summary?type=relay&order=-consensus_weight&limit=10&running=true";
    107107            doSearchView.collection.lookup({
    108                 success: function(relays){
     108                success: function(err){
    109109                    doSearchView.relays = doSearchView.collection.models;
     110                    doSearchView.error = err;
    110111                    doSearchView.render("");
    111112                    $("#search-title").text("Top 10 Relays by Consensus Weight");
    112113                    $(".progress").hide();