Commit a21f736d authored by Téo Vasseur's avatar Téo Vasseur Committed by Mathieu Giraud
Browse files

segmenter.js : fix segmenter_axis_select update

Fix #2422
parent a1fad9a8
Pipeline #2249 failed with stages
in 2 minutes and 18 seconds
...@@ -153,6 +153,7 @@ Segment.prototype = { ...@@ -153,6 +153,7 @@ Segment.prototype = {
var axOpts = Clone.prototype.axisOptions(); var axOpts = Clone.prototype.axisOptions();
var available_axis = (new Axes(this.m)).available(); var available_axis = (new Axes(this.m)).available();
var self_update = function() {self.update()};
for (var i in axOpts) { for (var i in axOpts) {
var axis_option = document.createElement('div'); var axis_option = document.createElement('div');
var axis_input = document.createElement('input'); var axis_input = document.createElement('input');
...@@ -160,7 +161,7 @@ Segment.prototype = { ...@@ -160,7 +161,7 @@ Segment.prototype = {
axis_input.setAttribute('value', axOpts[i]); axis_input.setAttribute('value', axOpts[i]);
axis_input.setAttribute('id', "sai"+i); // segmenter axis input axis_input.setAttribute('id', "sai"+i); // segmenter axis input
if (axOpts[i] == "Size") axis_input.setAttribute('checked', ""); if (axOpts[i] == "Size") axis_input.setAttribute('checked', "");
axis_input.onchange = self.update(); axis_input.onchange = self_update;
var axis_label = document.createElement('label'); var axis_label = document.createElement('label');
axis_label.setAttribute('for', "sai"+i); axis_label.setAttribute('for', "sai"+i);
......
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