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
85f17935
Commit
85f17935
authored
Dec 10, 2016
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass project ID through the DOM
parent
99ffd0d4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
app/assets/javascripts/filtered_search/dropdown_assignee.js.es6
...sets/javascripts/filtered_search/dropdown_assignee.js.es6
+1
-1
app/assets/javascripts/filtered_search/dropdown_author.js.es6
...assets/javascripts/filtered_search/dropdown_author.js.es6
+1
-1
app/assets/javascripts/filtered_search/filtered_search_dropdown.js.es6
...vascripts/filtered_search/filtered_search_dropdown.js.es6
+4
-0
app/views/shared/issuable/_search_bar.html.haml
app/views/shared/issuable/_search_bar.html.haml
+1
-1
No files found.
app/assets/javascripts/filtered_search/dropdown_assignee.js.es6
View file @
85f17935
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
params: {
params: {
per_page: 20,
per_page: 20,
active: true,
active: true,
project_id:
2
,
project_id:
this.getProjectId()
,
current_user: true,
current_user: true,
},
},
searchValueFunction: this.getSearchInput,
searchValueFunction: this.getSearchInput,
...
...
app/assets/javascripts/filtered_search/dropdown_author.js.es6
View file @
85f17935
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
params: {
params: {
per_page: 20,
per_page: 20,
active: true,
active: true,
project_id:
2
,
project_id:
this.getProjectId()
,
current_user: true,
current_user: true,
},
},
searchValueFunction: this.getSearchInput,
searchValueFunction: this.getSearchInput,
...
...
app/assets/javascripts/filtered_search/filtered_search_dropdown.js.es6
View file @
85f17935
...
@@ -21,6 +21,10 @@
...
@@ -21,6 +21,10 @@
this.dropdown.removeEventListener('click.dl', this.itemClickedWrapper);
this.dropdown.removeEventListener('click.dl', this.itemClickedWrapper);
}
}
getProjectId() {
return this.input.getAttribute('data-project-id');
}
getCurrentHook() {
getCurrentHook() {
return this.droplab.hooks.filter(h => h.id === this.hookId)[0];
return this.droplab.hooks.filter(h => h.id === this.hookId)[0];
}
}
...
...
app/views/shared/issuable/_search_bar.html.haml
View file @
85f17935
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
class:
"check_all_issues left"
class:
"check_all_issues left"
.issues-other-filters.filtered-search-container
.issues-other-filters.filtered-search-container
.filtered-search-input-container
.filtered-search-input-container
%input
.form-control.filtered-search
{
placeholder:
'Search or filter results...'
,
'data-id'
=>
'filtered-search'
}
%input
.form-control.filtered-search
{
placeholder:
'Search or filter results...'
,
'data-id'
=>
'filtered-search'
,
'data-project-id'
=>
@project
.
id
}
=
icon
(
'filter'
)
=
icon
(
'filter'
)
%button
.clear-search.hidden
{
type:
'button'
}
%button
.clear-search.hidden
{
type:
'button'
}
=
icon
(
'times'
)
=
icon
(
'times'
)
...
...
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