Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
a21f736d
Commit
a21f736d
authored
May 15, 2017
by
Téo Vasseur
Committed by
Mathieu Giraud
May 15, 2017
Browse files
segmenter.js : fix segmenter_axis_select update
Fix
#2422
parent
a1fad9a8
Pipeline
#2249
failed with stages
in 2 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
browser/js/segmenter.js
View file @
a21f736d
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment