Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
073496de
authored
Jan 21, 2015
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix race condition in search js
parent
eb103640
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
circle/dashboard/static/dashboard/dashboard.js
+6
-0
No files found.
circle/dashboard/static/dashboard/dashboard.js
View file @
073496de
...
...
@@ -157,14 +157,20 @@ $(function () {
/* search */
function
register_search
(
form
,
list
,
generateHTML
)
{
var
my_vms
=
[];
var
search_in_progress
=
false
;
form
.
find
(
'input'
).
keyup
(
function
(
e
)
{
if
(
search_in_progress
)
{
return
;
}
// if my_vms is empty get a list of our vms
if
(
my_vms
.
length
<
1
)
{
search_in_progress
=
true
;
var
btn
=
form
.
find
(
'button'
);
btn
.
find
(
'i'
).
addClass
(
"fa-spinner fa-spin"
);
$
.
get
(
form
.
prop
(
'action'
),
function
(
result
)
{
search_in_progress
=
false
;
my_vms
=
result
;
$
(
this
).
trigger
(
"keyup"
);
btn
.
find
(
'i'
).
removeClass
(
"fa-spinner fa-spin"
).
addClass
(
"fa-search"
);
...
...
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