Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
7df4b16b
Commit
7df4b16b
authored
8 years ago
by
Phil Hughes
Browse files
Options
Downloads
Patches
Plain Diff
Fixed issue with not being able to search text & filter
parent
31b1dc3c
No related branches found
No related tags found
1 merge request
!425
CE upstream
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/assets/javascripts/issuable.js.coffee
+10
-1
10 additions, 1 deletion
app/assets/javascripts/issuable.js.coffee
app/views/shared/issuable/_filter.html.haml
+1
-1
1 addition, 1 deletion
app/views/shared/issuable/_filter.html.haml
with
11 additions
and
2 deletions
app/assets/javascripts/issuable.js.coffee
+
10
−
1
View file @
7df4b16b
...
...
@@ -23,7 +23,16 @@ issuable_created = false
.
on
'keyup'
,
->
clearTimeout
(
@
timer
)
@
timer
=
setTimeout
(
->
Issuable
.
filterResults
$
(
'#issue_search_form'
)
$search
=
$
(
'#issue_search'
)
$form
=
$
(
'.js-filter-form'
)
$input
=
$
(
"input[name='
#{
$search
.
attr
(
'name'
)
}
']"
,
$form
)
if
$input
.
length
is
0
$form
.
append
"<input type='hidden' name='
#{
$search
.
attr
(
'name'
)
}
' value='
#{
$search
.
val
()
}
'/>"
else
$input
.
val
$search
.
val
()
Issuable
.
filterResults
$form
,
500
)
toggleLabelFilters
:
->
...
...
This diff is collapsed.
Click to expand it.
app/views/shared/issuable/_filter.html.haml
+
1
−
1
View file @
7df4b16b
.issues-filters
.issues-details-filters.
gray
-content-block.second-block
.issues-details-filters.
row
-content-block.second-block
=
form_tag
page_filter_path
(
without:
[
:assignee_id
,
:author_id
,
:milestone_title
,
:label_name
,
:issue_search
]),
method: :get
,
class:
'filter-form js-filter-form'
do
-
if
params
[
:issue_search
].
present?
=
hidden_field_tag
:issue_search
,
params
[
:issue_search
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment