Skip to content

Commit

Permalink
Fixed bug #14 -- block table is correctly re-build on periodical data…
Browse files Browse the repository at this point in the history
… reload. fetchBlocks() is now updated on reload_interval rather than reload_chart_interval.
  • Loading branch information
johndoe75 committed Feb 24, 2014
1 parent f8086d0 commit 39693a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ <h4>Recent blocks</h4>

$(document).on('update', function(e, eventInfo) {
fetchdata();
fetchBlocks();
});

$(document).on('update_graph', function(e, eventInfo) {
fetchBlocks();
console.log(chart.title.text);
graphPeriod= chart.title.text.match(/\((.+)\)/)[1] || 'day';
fetchGraph(graphPeriod);
Expand Down Expand Up @@ -412,7 +412,7 @@ <h4>Recent blocks</h4>
tr.append($('<td/>').append(num));
tr.append($('<td/>').append(blockinfo));
tr.append($('<td/>').html('&dash;'));
$('#recent_blocks').append(tr);
$('#'+num).remove(); $('#recent_blocks').append(tr);
});
});

Expand Down

0 comments on commit 39693a4

Please sign in to comment.