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

Add mappingNameToPropagate in applyToLinkedStyles

parent aeda3528
......@@ -57,6 +57,7 @@ Ext.define('metExploreViz.view.form.selectConditionForm.SelectConditionFormContr
view.lookupReference('selectCondition').on({
change : function(that, newVal, old){
this.map(newVal, old, me.getAStyleFormParent());
this.applyToLinkedStyles(me.getAStyleFormParent());
},
beforerender: function(c) {
var viewAStyleForm = me.getAStyleFormParent();
......@@ -240,8 +241,10 @@ Ext.define('metExploreViz.view.form.selectConditionForm.SelectConditionFormContr
});
linkedStyles.forEach(function(styleForm){
var dataTypeToPropagate = view.lookupReference('selectConditionType').getValue();
var mappingNameToPropagate = view.lookupReference('selectCondition').getValue();
styleForm.lookupReference('selectConditionForm').lookupReference('selectConditionType').setValue(dataTypeToPropagate);
styleForm.lookupReference('selectConditionForm').lookupReference('selectCondition').setValue(mappingNameToPropagate);
});
}
......@@ -1089,4 +1092,4 @@ Ext.define('metExploreViz.view.form.selectConditionForm.SelectConditionFormContr
var view = me.getView();
return view.query("^ aStyleForm")[0];
}
});
\ No newline at end of file
});
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