Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f8e220b6
Commit
f8e220b6
authored
Mar 10, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix "Show all" link behavior
Fixes #14168
parent
fe4d3abe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
CHANGELOG
CHANGELOG
+3
-2
app/assets/javascripts/projects_list.js.coffee
app/assets/javascripts/projects_list.js.coffee
+10
-4
No files found.
CHANGELOG
View file @
f8e220b6
...
...
@@ -14,8 +14,9 @@ v 8.6.0 (unreleased)
- Increase the notes polling timeout over time (Roberto Dip)
v 8.5.5
- Ensure removing a project removes associated Todo entries.
- Prevent a 500 error in Todos when author was removed.
- Ensure removing a project removes associated Todo entries
- Prevent a 500 error in Todos when author was removed
- Fix "Show all" link behavior
v 8.5.4
- Do not cache requests for badges (including builds badge)
...
...
app/assets/javascripts/projects_list.js.coffee
View file @
f8e220b6
...
...
@@ -2,20 +2,26 @@ class @ProjectsList
constructor
:
->
$
(
".projects-list .js-expand"
).
on
'click'
,
(
e
)
->
e
.
preventDefault
()
list
=
$
(
this
).
closest
(
'.projects-list'
)
$projectsList
=
$
(
this
).
closest
(
'.projects-list'
)
ProjectsList
.
showPagination
(
$projectsList
)
$projectsList
.
find
(
'li.bottom'
).
hide
()
$
(
"#filter_projects"
).
on
'keyup'
,
->
ProjectsList
.
filter_results
(
$
(
"#filter_projects"
))
@
showPagination
:
(
$projectsList
)
->
$projectsList
.
find
(
'li'
).
show
()
$
(
'.gl-pagination'
).
show
()
@
filter_results
:
(
$element
)
->
terms
=
$element
.
val
()
filterSelector
=
$element
.
data
(
'filter-selector'
)
||
'span.filter-title'
$projectsList
=
$
(
'.projects-list'
)
if
not
terms
$
(
".projects-list li"
).
show
()
$
(
'.gl-pagination'
).
show
()
ProjectsList
.
showPagination
(
$projectsList
)
else
$
(
".projects-list li"
).
each
(
index
)
->
$
projectsList
.
find
(
'li'
).
each
(
index
)
->
$this
=
$
(
this
)
name
=
$this
.
find
(
filterSelector
).
text
()
...
...
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