diff options
| author | 8chan <admin@8chan.co> | 2014-11-21 23:33:42 -0800 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-04-10 15:36:06 +0200 |
| commit | cf91daee7cfbdbede0e0d01b40dd7879cab88186 (patch) | |
| tree | bc7b85c0a01dc08dc0b42d47f253d83d88a0304f /js | |
| parent | fdc14c699c25131ffe25536928e0dfac990c4ae3 (diff) | |
No need to display pruned in two places...especially if server times out / errors
Diffstat (limited to 'js')
| -rw-r--r-- | js/thread-stats.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/thread-stats.js b/js/thread-stats.js index 7c13d66c..1785b79a 100644 --- a/js/thread-stats.js +++ b/js/thread-stats.js @@ -65,7 +65,7 @@ $(document).ready(function(){ $('#thread_stats_uids').text(size(ids)); } $.getJSON('//'+ document.location.host +'/'+ board_name +'/threads.json').success(function(data){ - var found, page = 'Pruned or Deleted'; + var found, page = '???'; for (var i=0;data[i];i++){ var threads = data[i].threads; for (var j=0; threads[j]; j++){ @@ -86,7 +86,7 @@ $(document).ready(function(){ // uses ajax call so it gets loaded on a delay (depending on network resources available) var thread_stats_page_timer = setInterval(function(){ $.getJSON('//'+ document.location.host +'/'+ board_name +'/threads.json').success(function(data){ - var found, page = 'Pruned or Deleted'; + var found, page = '???'; for (var i=0;data[i];i++){ var threads = data[i].threads; for (var j=0; threads[j]; j++){ |
