Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Open WIN Community
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-science
community
Open WIN Community
Commits
6bd43a13
Commit
6bd43a13
authored
5 years ago
by
Silvio Giebl
Browse files
Options
Downloads
Patches
Plain Diff
Fixed js browser incompatibility
(cherry picked from commit d39b7b3041d1bdb9f80ab7f5878e64a3b3b79b5d)
parent
8e6e3ddd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assets/js/just-the-docs.js
+6
-3
6 additions, 3 deletions
assets/js/just-the-docs.js
with
6 additions
and
3 deletions
assets/js/just-the-docs.js
+
6
−
3
View file @
6bd43a13
...
@@ -25,10 +25,13 @@ jtd.onReady = function(ready) {
...
@@ -25,10 +25,13 @@ jtd.onReady = function(ready) {
function
initNav
()
{
function
initNav
()
{
jtd
.
addEvent
(
document
,
'
click
'
,
function
(
e
){
jtd
.
addEvent
(
document
,
'
click
'
,
function
(
e
){
var
expander
=
e
.
path
.
find
(
function
(
x
){
return
x
.
classList
&&
x
.
classList
.
contains
(
'
nav-list-expander
'
)
});
var
target
=
e
.
target
;
if
(
expander
)
{
while
(
target
&&
target
.
classList
&&
!
target
.
classList
.
contains
(
'
nav-list-expander
'
))
{
target
=
target
.
parentElement
;
}
if
(
target
)
{
e
.
preventDefault
();
e
.
preventDefault
();
expander
.
parentElement
.
classList
.
toggle
(
'
active
'
);
target
.
parentElement
.
classList
.
toggle
(
'
active
'
);
}
}
});
});
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment