Skip to content

Commit

Permalink
Bug getredash#303: 'Show Total' duplicates values on multiple runs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderlz committed Jan 24, 2015
1 parent 0b0b88a commit 44272f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rd_ui/app/scripts/ng_highchart.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@
{
text: 'Show Total',
onclick: function () {
var hasTotalsAlready = _.some(this.series, function (s) {
return s.name == 'Total';
})
if (hasTotalsAlready){
return;
}
var data = {};
_.each(this.series, function (s) {
s.setVisible(false, false);
Expand Down

0 comments on commit 44272f5

Please sign in to comment.