BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
716ac262
Unverified
Commit
716ac262
authored
Dec 04, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Close all open dropdowns when search input is clicked
parent
f3a3bd50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
search_autocomplete.js
app/assets/javascripts/search_autocomplete.js
+3
-0
No files found.
app/assets/javascripts/search_autocomplete.js
View file @
716ac262
...
...
@@ -281,6 +281,8 @@ import { isInGroupsPage, isInProjectPage, getGroupSlug, getProjectSlug } from '.
// Avoid falsy value to be returned
onSearchInputClick
(
e
)
{
$
(
'.dropdown.open .dropdown-toggle'
).
dropdown
(
'toggle'
);
this
.
dropdown
.
dropdown
(
'toggle'
);
return
e
.
stopImmediatePropagation
();
}
...
...
@@ -305,6 +307,7 @@ import { isInGroupsPage, isInProjectPage, getGroupSlug, getProjectSlug } from '.
onSearchInputBlur
(
e
)
{
this
.
isFocused
=
false
;
this
.
wrap
.
removeClass
(
'search-active'
);
$
(
'.search-input-wrap'
).
removeClass
(
'open'
);
// If input is blank then restore state
if
(
this
.
searchInput
.
val
()
===
''
)
{
return
this
.
restoreOriginalState
();
...
...
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