diff options
author | Phil Hughes <me@iamphill.com> | 2016-08-05 19:24:16 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-08-17 19:12:47 +0300 |
commit | 69458c0e4a40f6b2310241a550d4458b4245d503 (patch) | |
tree | e41396bd7fd48f179551a136b47eaa19660c6f39 /app/assets/javascripts/users_select.js | |
parent | 8e3fd88ec053f99b3249173c9a715913ae4cb101 (diff) |
Keeps the filters after a reload
Diffstat (limited to 'app/assets/javascripts/users_select.js')
-rw-r--r-- | app/assets/javascripts/users_select.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/users_select.js b/app/assets/javascripts/users_select.js index d0abb18a44c..aa157749443 100644 --- a/app/assets/javascripts/users_select.js +++ b/app/assets/javascripts/users_select.js @@ -141,7 +141,7 @@ $selectbox.hide(); return $value.css('display', ''); }, - clicked: function(user) { + clicked: function(user, $el, e) { var isIssueIndex, isMRIndex, page, selected; page = $('body').data('page'); isIssueIndex = page === 'projects:issues:index'; @@ -150,7 +150,10 @@ return; } if (page === 'projects:boards:show') { + selectedId = user.id; BoardsStore.state.filters[$dropdown.data('field-name')] = user.id; + BoardsStore.updateFiltersUrl(); + e.preventDefault(); } else if ($dropdown.hasClass('js-filter-submit') && (isIssueIndex || isMRIndex)) { selectedId = user.id; return Issuable.filterResults($dropdown.closest('form')); |