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
7aca6dac
Commit
7aca6dac
authored
Jun 30, 2020
by
Amina Taoui
Browse files
select/unselect compartment
parent
8f9c0ce1
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/view/form/captionForm/CaptionFormController.js
View file @
7aca6dac
...
...
@@ -559,7 +559,12 @@ Ext.define('metExploreViz.view.form.captionForm.CaptionFormController', {
selectAllButton
.
on
({
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
allIsSelected
=
arrayCheckBox
.
every
(
function
(
checkbox
){
return
checkbox
.
checked
});
if
(
allIsSelected
){
arrayCheckBox
.
forEach
(
function
(
checkBox
)
{
...
...
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