Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
metexplore
MetExploreViz
Commits
b294986e
Commit
b294986e
authored
Jun 18, 2021
by
Jean-Clement Gallardo
Browse files
Bug fix condition selection and display
parent
bc9d639a
Changes
1
Show whitespace changes
Inline
Side-by-side
app/view/form/fluxMappingForm/FluxMappingFormController.js
View file @
b294986e
...
...
@@ -235,21 +235,22 @@ Ext.define('metExploreViz.view.form.fluxMappingForm.FluxMappingFormController',
if
(
nbCol
===
"
two
"
){
var
condSplit
=
[
condSelect
,
condSelect2
];
var
indexCond
=
[];
var
indexCond1
;
var
indexCond2
;
for
(
var
i
=
0
;
i
<
fluxCond
.
length
;
i
++
){
condSplit
.
forEach
(
function
(
cond
){
if
(
cond
===
fluxCond
[
i
]){
indexCond
.
push
(
i
+
1
);
if
(
condSplit
[
0
]
===
fluxCond
[
i
]){
indexCond1
=
i
+
1
;
}
if
(
condSplit
[
1
]
===
fluxCond
[
i
]){
indexCond2
=
i
+
1
;
}
});
}
for
(
var
i
=
0
;
i
<
fluxData
.
length
;
i
++
){
var
data
=
[];
data
.
push
(
fluxData
[
i
][
0
]);
indexCond
.
forEach
(
function
(
index
){
data
.
push
(
fluxData
[
i
][
index
]);
});
data
.
push
(
fluxData
[
i
][
indexCond1
]);
data
.
push
(
fluxData
[
i
][
indexCond2
]);
conData
.
push
(
data
);
}
}
...
...
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