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
17f5a34b
Commit
17f5a34b
authored
Feb 10, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display loading indicator when filtering ref switcher dropdown
parent
4a925837
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
gl_dropdown.js
app/assets/javascripts/gl_dropdown.js
+2
-0
27966-branch-ref-switcher-input-filter-broken.yml
...eleased/27966-branch-ref-switcher-input-filter-broken.yml
+4
-0
ref_switcher_spec.rb
spec/features/projects/ref_switcher_spec.rb
+3
-3
No files found.
app/assets/javascripts/gl_dropdown.js
View file @
17f5a34b
...
...
@@ -47,9 +47,11 @@
}
// Only filter asynchronously only if option remote is set
if
(
this
.
options
.
remote
)
{
$inputContainer
.
parent
().
addClass
(
'is-loading'
);
clearTimeout
(
timeout
);
return
timeout
=
setTimeout
(
function
()
{
return
this
.
options
.
query
(
this
.
input
.
val
(),
function
(
data
)
{
$inputContainer
.
parent
().
removeClass
(
'is-loading'
);
return
this
.
options
.
callback
(
data
);
}.
bind
(
this
));
}.
bind
(
this
),
250
);
...
...
changelogs/unreleased/27966-branch-ref-switcher-input-filter-broken.yml
0 → 100644
View file @
17f5a34b
---
title
:
Display loading indicator when filtering ref switcher dropdown
merge_request
:
author
:
spec/features/projects/ref_switcher_spec.rb
View file @
17f5a34b
...
...
@@ -20,9 +20,9 @@ feature 'Ref switcher', feature: true, js: true do
input
.
set
'binary'
wait_for_ajax
input
.
native
.
send_keys
:down
input
.
native
.
send_keys
:down
input
.
native
.
send_keys
:enter
page
.
within
'.dropdown-content ul'
do
input
.
native
.
send_keys
:enter
end
end
expect
(
page
).
to
have_title
'binary-encoding'
...
...
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