diff options
author | Josh Frye <joshfng@gmail.com> | 2016-02-09 04:34:54 +0300 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-02-09 18:10:41 +0300 |
commit | 120dca0f35a09110a9eeb3e4b93b998eca0ecb69 (patch) | |
tree | 62638d0310b1612d4118330b7745ada15a3d6992 /app/assets/javascripts/projects_list.js.coffee | |
parent | 8b4e9720d948d0f0fe61ba7344158560e639393f (diff) |
MR feedback
Diffstat (limited to 'app/assets/javascripts/projects_list.js.coffee')
-rw-r--r-- | app/assets/javascripts/projects_list.js.coffee | 7 |
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() |