diff options
author | Josh Frye <joshfng@gmail.com> | 2016-02-10 02:01:32 +0300 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-02-10 02:01:32 +0300 |
commit | 929b53c6f256b64b19752d0b1ee6acedf37e164b (patch) | |
tree | 6d7f48caa22bf778b4012358abf14c7a4f59352e /app/assets | |
parent | 120dca0f35a09110a9eeb3e4b93b998eca0ecb69 (diff) |
More specific selectors
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/dashboard.js.coffee | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/dashboard.js.coffee b/app/assets/javascripts/dashboard.js.coffee index 7e77ed5e7ff..47f86e31751 100644 --- a/app/assets/javascripts/dashboard.js.coffee +++ b/app/assets/javascripts/dashboard.js.coffee @@ -1,11 +1,11 @@ @Dashboard = init: -> - $("#project-filter-form-field").off('keyup') + $("input#project-filter-form-field,.projects-list-filter").off('keyup') this.initSearch() initSearch: -> @timer = null - $("#project-filter-form-field,.projects-list-filter").on('keyup', -> + $("input#project-filter-form-field,.projects-list-filter").on('keyup', -> clearTimeout(@timer) @timer = setTimeout(Dashboard.filterResults, 500) ) @@ -14,8 +14,8 @@ $('.projects-list-holder').fadeTo(250, 0.5) form = null - form = $("#project-filter-form") - search = $("#project-filter-form-field").val() + form = $("form#project-filter-form") + search = $("input#project-filter-form-field").val() project_filter_url = form.attr('action') + '?' + form.serialize() $.ajax |