Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bio-IT
image-analysis-training-resources
Commits
1c590599
Verified
Commit
1c590599
authored
Jul 26, 2019
by
Toby Hodges
Browse files
fix conditional for exercise div display
parent
70f0909b
Changes
1
Hide whitespace changes
Inline
Side-by-side
_layouts/module.html
View file @
1c590599
...
...
@@ -57,8 +57,10 @@ function change_exercises_content_by_platform(form_control){
{
%
for
platform
in
page
.
exercises
%
}
document
.
getElementById
(
"
{{ platform[0] | slugify }}-exercises-div
"
).
style
.
display
=
'
none
'
;
{
%
endfor
%
}
{
%
if
page
.
exercises
%
}
if
(
!
form_control
||
document
.
getElementById
(
form_control
).
value
==
"
default-exercises
"
)
{
set_exercises_view_defaults
();
{
%
endif
%
}
{
%
for
platform
in
page
.
exercises
%
}
}
else
if
(
document
.
getElementById
(
form_control
).
value
==
"
{{ platform[0] | slugify }}-exercises
"
)
{
document
.
getElementById
(
"
{{ platform[0] | slugify }}-exercises-div
"
).
style
.
display
=
'
block
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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