From 120dca0f35a09110a9eeb3e4b93b998eca0ecb69 Mon Sep 17 00:00:00 2001 From: Josh Frye Date: Mon, 8 Feb 2016 20:34:54 -0500 Subject: MR feedback --- app/assets/javascripts/projects_list.js.coffee | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'app/assets') 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() -- cgit v1.2.1