Commit 31dd6ae1 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

js/scatterPlot.js: fix the span_icon_{plot,bar} buttons

This was broken by ae59e50a, this is now fixed.
Fixes #2218.
parent b73e59ca
......@@ -631,7 +631,7 @@ ScatterPlot.prototype = {
$(span_icon_bar).empty().append(svg);
}, 'xml');
span_icon_bar.onclick = function(){
self.changeMode(this.MODE_BAR);
self.changeMode(self.MODE_BAR);
};
span_icon_plot = document.createElement('div');
......@@ -642,7 +642,7 @@ ScatterPlot.prototype = {
$(span_icon_plot).empty().append(svg);
}, 'xml');
span_icon_plot.onclick = function(){
self.changeMode(this.MODE_GRID);
self.changeMode(self.MODE_GRID);
};
var div_mode = document.createElement('div');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment