diff options
author | Josh Frye <joshfng@gmail.com> | 2016-02-05 17:02:50 +0300 |
---|---|---|
committer | Josh Frye <joshfng@gmail.com> | 2016-02-05 17:05:52 +0300 |
commit | f1102b3373ecd294e625edf541d47552d5dc489f (patch) | |
tree | 69bf59dae9d7e4907c4b1628cd2b59c131ef7d0f /app/assets | |
parent | f8526fef0b2bde3b517ee993e5cef48c6c8f5da7 (diff) |
Frontend changes from MR feedback
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/dashboard.js.coffee | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/assets/javascripts/dashboard.js.coffee b/app/assets/javascripts/dashboard.js.coffee index e96b84147ba..dd295088312 100644 --- a/app/assets/javascripts/dashboard.js.coffee +++ b/app/assets/javascripts/dashboard.js.coffee @@ -4,12 +4,13 @@ initSearch: -> @timer = null - $("#project-filter-form-field").keyup -> + $("#project-filter-form-field").on('keyup', -> clearTimeout(@timer) @timer = setTimeout(Dashboard.filterResults, 500) + ) filterResults: => - $('.projects-list-holder').css("opacity", '0.5') + $('.projects-list-holder').fadeTo(250, 0.5) form = null form = $("#project-filter-form") @@ -21,7 +22,7 @@ url: form.attr('action') data: form.serialize() complete: -> - $('.projects-list-holder').css("opacity", '1.0') + $('.projects-list-holder').fadeTo(250, 1) success: (data) -> $('div.projects-list-holder').replaceWith(data.html) # Change url so if user reload a page - search results are saved |