mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 13:46:11 +10:00
Fixed issue with not being able to search text & filter
This commit is contained in:
@@ -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: ->
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.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]
|
||||
|
||||
Reference in New Issue
Block a user