summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/projects_list.js.coffee7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/assets/javascripts/projects_list.js.coffee b/app/assets/javascripts/projects_list.js.coffee
index bb392140b73..eab34be652a 100644
--- a/app/assets/javascripts/projects_list.js.coffee
+++ b/app/assets/javascripts/projects_list.js.coffee
@@ -1,24 +1,21 @@
class @ProjectsList
constructor: ->
- $("#project-filter-form-field").off('keyup')
$(".projects-list .js-expand").on 'click', (e) ->
e.preventDefault()
list = $(this).closest('.projects-list')
$("#filter_projects").on 'keyup', ->
ProjectsList.filter_results($("#filter_projects"))
- $("#project-filter-form-field").on 'keyup', ->
- ProjectsList.filter_results($("#project-filter-form-field"))
@filter_results: ($element) ->
terms = $element.val()
filterSelector = $element.data('filter-selector') || 'span.filter-title'
if not terms
- $("ul.projects-list li").show()
+ $(".projects-list li").show()
$('.gl-pagination').show()
else
- $("ul.projects-list li").each (index) ->
+ $(".projects-list li").each (index) ->
$this = $(this)
name = $this.find(filterSelector).text()