Skip to content

Commit

Permalink
fixes #7495 - only update nearest evolution graph for widgets on dash…
Browse files Browse the repository at this point in the history
…board
  • Loading branch information
sgiehl committed Mar 22, 2015
1 parent a984957 commit ecf8a51
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/CoreHome/javascripts/sparkline.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ window.initializeSparklines = function () {
// if this happens, we can't find the graph using $('#'+idDataTable+"Chart");
// instead, we just use the first evolution graph we can find.
if (dataTable.length == 0) {
dataTable = $('div.dataTableVizEvolution');
if ($(this).parents('.widget').length) {
dataTable = $(this).parents('.widget').find('div.dataTableVizEvolution');
} else {
dataTable = $('div.dataTableVizEvolution');
}
}

// reload the datatable w/ a new column & scroll to the graph
Expand Down

0 comments on commit ecf8a51

Please sign in to comment.