Skip to content
GitLab
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
b4ceda07
Commit
b4ceda07
authored
May 11, 2021
by
Jean-Clement Gallardo
Browse files
Finish hotfix/SaveScale
parents
e37af5f1
27262e44
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/view/form/selectConditionForm/SelectConditionFormController.js
View file @
b4ceda07
...
...
@@ -57,15 +57,17 @@ Ext.define('metExploreViz.view.form.selectConditionForm.SelectConditionFormContr
view
.
lookupReference
(
'
selectCondition
'
).
on
({
change
:
function
(
that
,
newVal
,
old
){
var
conditionType
=
view
.
lookupReference
(
'
selectConditionType
'
).
getValue
();
var
session
=
_metExploreViz
.
getSessionById
(
'
viz
'
);
var
nbNodes
=
session
.
getD3Data
().
getNodes
().
length
;
if
(
conditionType
===
"
Continuous
"
){
var
oldCondition
=
old
+
"
"
+
conditionType
;
var
newCondition
=
newVal
+
"
"
+
conditionType
;
if
(
this
.
getAStyleFormParent
().
scaleRange
!==
undefined
){
this
.
getAStyleFormParent
()[
oldCondition
]
=
this
.
getAStyleFormParent
().
scaleRange
;
this
.
getAStyleFormParent
()[
oldCondition
+
nbNodes
]
=
this
.
getAStyleFormParent
().
scaleRange
;
}
if
(
this
.
getAStyleFormParent
()[
newCondition
]
!==
null
){
if
(
this
.
getAStyleFormParent
()[
newCondition
+
nbNodes
]
!==
null
){
this
.
getAStyleFormParent
().
scaleRange
=
this
.
getAStyleFormParent
()[
newCondition
]
}
}
...
...
@@ -74,10 +76,10 @@ Ext.define('metExploreViz.view.form.selectConditionForm.SelectConditionFormContr
var
oldCondition
=
old
+
"
"
+
conditionType
;
var
newCondition
=
newVal
+
"
"
+
conditionType
;
if
(
this
.
getAStyleFormParent
().
valueDiscreteMappings
!==
undefined
){
this
.
getAStyleFormParent
()[
oldCondition
]
=
this
.
getAStyleFormParent
().
valueDiscreteMappings
;
this
.
getAStyleFormParent
()[
oldCondition
+
nbNodes
]
=
this
.
getAStyleFormParent
().
valueDiscreteMappings
;
}
if
(
this
.
getAStyleFormParent
()[
newCondition
]
!==
null
){
if
(
this
.
getAStyleFormParent
()[
newCondition
+
nbNodes
]
!==
null
){
this
.
getAStyleFormParent
().
valueDiscreteMappings
=
this
.
getAStyleFormParent
()[
newCondition
]
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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