diff options
author | Josh Frye <joshfng@gmail.com> | 2016-02-08 20:34:54 -0500 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-02-09 10:10:41 -0500 |
commit | 120dca0f35a09110a9eeb3e4b93b998eca0ecb69 (patch) | |
tree | 62638d0310b1612d4118330b7745ada15a3d6992 /app/assets | |
parent | 8b4e9720d948d0f0fe61ba7344158560e639393f (diff) | |
download | gitlab-ce-120dca0f35a09110a9eeb3e4b93b998eca0ecb69.tar.gz |
MR feedback
Diffstat (limited to 'app/assets')
-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() |