Commit 7aca6dac authored by Amina Taoui's avatar Amina Taoui
Browse files

select/unselect compartment

parent 8f9c0ce1
...@@ -559,7 +559,12 @@ Ext.define('metExploreViz.view.form.captionForm.CaptionFormController', { ...@@ -559,7 +559,12 @@ Ext.define('metExploreViz.view.form.captionForm.CaptionFormController', {
selectAllButton.on({ selectAllButton.on({
click : function (that, newV, oldVV, e) { click : function (that, newV, oldVV, e) {
if(view.id==="captionFormCompartments"){
var arrayCheckBox = Ext.getCmp("captionFormCompartments").query('checkbox[forId=componentCheckbox]');
}else if(view.id==="captionFormPathways"){
var arrayCheckBox = Ext.getCmp("captionFormPathways").query('checkbox[forId=componentCheckbox]'); var arrayCheckBox = Ext.getCmp("captionFormPathways").query('checkbox[forId=componentCheckbox]');
}
var allIsSelected = arrayCheckBox.every(function(checkbox){return checkbox.checked}); var allIsSelected = arrayCheckBox.every(function(checkbox){return checkbox.checked});
if(allIsSelected){ if(allIsSelected){
arrayCheckBox.forEach(function (checkBox) { arrayCheckBox.forEach(function (checkBox) {
......
Supports Markdown
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