Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
fb12b0bd
Commit
fb12b0bd
authored
4 years ago
by
XhmikosR
Browse files
Options
Download
Email Patches
Plain Diff
search.js: check for `search-input` element early (#32100)
parent
45bf55e4
v4-dev-dropdown-hide-method
v4-dev
v4.6.2
v4.6.1
v4.6.0
4 merge requests
!36532
My v4 dev
,
!34086
v4: Fix prevented show event disables modals with fade class from being displayed again
,
!33729
V4 dev
,
!33086
V4 dev
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
site/docs/4.5/assets/js/src/search.js
+3
-2
site/docs/4.5/assets/js/src/search.js
with
3 additions
and
2 deletions
+3
-2
site/docs/4.5/assets/js/src/search.js
+
3
-
2
View file @
fb12b0bd
...
...
@@ -5,11 +5,12 @@
(
function
()
{
'
use strict
'
if
(
!
window
.
docsearch
)
{
var
inputElement
=
document
.
getElementById
(
'
search-input
'
)
if
(
!
window
.
docsearch
||
!
inputElement
)
{
return
}
var
inputElement
=
document
.
getElementById
(
'
search-input
'
)
var
siteDocsVersion
=
inputElement
.
getAttribute
(
'
data-docs-version
'
)
function
getOrigin
()
{
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets