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
2c871ca1
Commit
2c871ca1
authored
Feb 03, 2016
by
Josh Frye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delay filter until user stops typing
parent
7522ac0b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
11 deletions
+18
-11
dashboard.js.coffee
app/assets/javascripts/dashboard.js.coffee
+1
-1
issues.js.coffee
app/assets/javascripts/issues.js.coffee
+1
-1
projects_list.js.coffee
app/assets/javascripts/projects_list.js.coffee
+13
-6
user.js.coffee
app/assets/javascripts/user.js.coffee
+1
-1
_projects_head.html.haml
app/views/dashboard/_projects_head.html.haml
+1
-1
_projects.html.haml
app/views/dashboard/projects/_projects.html.haml
+1
-1
No files found.
app/assets/javascripts/dashboard.js.coffee
View file @
2c871ca1
class
@
Dashboard
constructor
:
->
new
ProjectsLis
t
()
ProjectsList
.
ini
t
()
app/assets/javascripts/issues.js.coffee
View file @
2c871ca1
...
...
@@ -45,7 +45,7 @@
filterResults
:
=>
form
=
$
(
"#issue_search_form"
)
search
=
$
(
"#
issue_search
"
).
val
()
search
=
$
(
"#
projects-list-filter
"
).
val
()
$
(
'.issues-holder'
).
css
(
"opacity"
,
'0.5'
)
issues_url
=
form
.
attr
(
'action'
)
+
'?'
+
form
.
serialize
()
...
...
app/assets/javascripts/projects_list.js.coffee
View file @
2c871ca1
class
@
ProjectsList
constructor
:
->
@
ProjectsList
=
init
:
->
$
(
".projects-list .js-expand"
).
on
'click'
,
(
e
)
->
e
.
preventDefault
()
list
=
$
(
this
).
closest
(
'.projects-list'
)
list
.
find
(
"li"
).
show
()
list
.
find
(
"li.bottom"
).
hide
()
this
.
initSearch
()
$
(
".projects-list-filter"
).
keyup
->
terms
=
$
(
this
).
val
()
initSearch
:
->
@
timer
=
null
$
(
"#projects-list-filter"
).
keyup
->
clearTimeout
(
@
timer
)
@
timer
=
setTimeout
(
ProjectsList
.
filterResults
,
500
)
filterResults
:
=>
form
=
$
(
"#project-list-form"
)
search
=
$
(
"#issue_search"
).
val
()
uiBox
=
$
(
'div.projects-list-holder'
)
filterSelector
=
$
(
this
).
data
(
'filter-selector'
)
||
'span.filter-title'
$
(
'.projects-list-holder'
).
css
(
"opacity"
,
'0.5'
)
form
=
$
(
"#project-list-form"
)
project_filter_url
=
form
.
attr
(
'action'
)
+
'?'
+
form
.
serialize
()
$
.
ajax
type
:
"GET"
...
...
app/assets/javascripts/user.js.coffee
View file @
2c871ca1
class
@
User
constructor
:
->
$
(
'.profile-groups-avatars'
).
tooltip
(
"placement"
:
"top"
)
new
ProjectsLis
t
()
ProjectsList
.
ini
t
()
$
(
'.hide-project-limit-message'
).
on
'click'
,
(
e
)
->
path
=
'/'
...
...
app/views/dashboard/_projects_head.html.haml
View file @
2c871ca1
...
...
@@ -15,7 +15,7 @@
.nav-controls
=
form_tag
''
,
method: :get
,
class:
'project-list-form'
,
id:
'project-list-form'
do
|
f
|
.append-right-10.hidden-xs.hidden-sm
=
search_field_tag
:filter_projects
,
params
[
:filter_projects
],
placeholder:
'Filter by name...'
,
class:
'projects-list-filter form-control
issue_search
search-text-input'
,
spellcheck:
false
,
id:
'projects-list-filter'
=
search_field_tag
:filter_projects
,
params
[
:filter_projects
],
placeholder:
'Filter by name...'
,
class:
'projects-list-filter form-control search-text-input'
,
spellcheck:
false
,
id:
'projects-list-filter'
-
if
current_user
.
can_create_project?
=
link_to
new_project_path
,
class:
'btn btn-new'
do
=
icon
(
'plus'
)
...
...
app/views/dashboard/projects/_projects.html.haml
View file @
2c871ca1
...
...
@@ -3,4 +3,4 @@
=
render
'shared/projects/list'
,
ci:
true
:javascript
new
ProjectsList
();
ProjectsList
.
init
()
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