Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
6c55e9fc
Unverified
Commit
6c55e9fc
authored
Jul 01, 2020
by
Sylvain Gugger
Committed by
GitHub
Jul 01, 2020
Browse files
Fix dropdown bug in searches (#5440)
* Trigger CI * Fix dropdown bug in searches
parent
734a28a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/_static/js/custom.js
docs/source/_static/js/custom.js
+1
-1
No files found.
docs/source/_static/js/custom.js
View file @
6c55e9fc
...
...
@@ -87,7 +87,7 @@ function addVersionControl() {
const
parts
=
location
.
toString
().
split
(
'
/
'
);
let
versionIndex
=
parts
.
length
-
2
;
// Index page may not have a last part with filename.html so we need to go up
if
(
parts
[
parts
.
length
-
1
]
!=
""
&&
!
parts
[
parts
.
length
-
1
].
match
(
/
\.
html$/
))
{
if
(
parts
[
parts
.
length
-
1
]
!=
""
&&
!
parts
[
parts
.
length
-
1
].
match
(
/
\.
html$
|^search.html
?
/
))
{
versionIndex
=
parts
.
length
-
1
;
}
// Main classes and models are nested so we need to go deeper
...
...
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