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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
e67a4837
Commit
e67a4837
authored
Aug 31, 2016
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed project filtering
parent
0ccdb41c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
app/assets/javascripts/todos.js
app/assets/javascripts/todos.js
+4
-3
No files found.
app/assets/javascripts/todos.js
View file @
e67a4837
...
...
@@ -30,7 +30,7 @@
Todos
.
prototype
.
initFilters
=
function
()
{
new
UsersSelect
();
this
.
initFilterDropdown
(
$
(
'
.js-project-search
'
),
'
project_id
'
,
true
);
this
.
initFilterDropdown
(
$
(
'
.js-project-search
'
),
'
project_id
'
,
[
'
text
'
]
);
this
.
initFilterDropdown
(
$
(
'
.js-type-search
'
),
'
type
'
);
this
.
initFilterDropdown
(
$
(
'
.js-action-search
'
),
'
action_id
'
);
...
...
@@ -40,11 +40,12 @@
});
};
Todos
.
prototype
.
initFilterDropdown
=
function
(
$dropdown
,
fieldName
,
isFilterable
)
{
Todos
.
prototype
.
initFilterDropdown
=
function
(
$dropdown
,
fieldName
,
searchFields
)
{
$dropdown
.
glDropdown
({
selectable
:
true
,
filterable
:
isFilterabl
e
,
filterable
:
searchFields
?
true
:
fals
e
,
fieldName
:
fieldName
,
search
:
{
fields
:
searchFields
},
data
:
$dropdown
.
data
(
'
data
'
),
clicked
:
function
()
{
return
$dropdown
.
closest
(
'
form.filter-form
'
).
submit
();
...
...
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