Commit 03e8e16d authored by Jean-Clement Gallardo's avatar Jean-Clement Gallardo
Browse files

Bug fix params choice

parent a9f80d97
......@@ -43,19 +43,25 @@ Ext.define('metExploreViz.view.form.fluxMappingForm.FluxMappingFormController',
view.lookupReference('selectColNumber').on({
change: function(){
if (view.lookupReference('selectColNumber').getValue() === "two"){
view.lookupReference("secondConditionLabel").setHidden(false);
view.lookupReference("firstConditionLabel").setHidden(false);
view.lookupReference("secondConditionBox").setHidden(false);
}
if (view.lookupReference('selectColNumber').getValue() === "one"){
view.lookupReference("secondConditionLabel").setHidden(true);
view.lookupReference("firstConditionLabel").setHidden(true);
view.lookupReference("secondConditionBox").setHidden(true);
var selectedFile = view.lookupReference("selectFile").getValue();
me.colParse(1, selectedFile);
}
if (view.lookupReference('selectColNumber').getValue() === "two"){
view.lookupReference("secondConditionLabel").setHidden(false);
view.lookupReference("firstConditionLabel").setHidden(false);
view.lookupReference("secondConditionBox").setHidden(false);
var selectedFile = view.lookupReference("selectFile").getValue();
me.colParse(2, selectedFile);
if (view.lookupReference('selectFile').getValue() !== null){
if (view.lookupReference('selectColNumber').getValue() === "one"){
var selectedFile = view.lookupReference("selectFile").getValue();
me.colParse(1, selectedFile);
}
if (view.lookupReference('selectColNumber').getValue() === "two"){
var selectedFile = view.lookupReference("selectFile").getValue();
me.colParse(2, selectedFile);
}
}
}
});
......
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