diff options
author | Phil Hughes <me@iamphill.com> | 2016-04-11 13:38:24 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-04-11 13:38:24 +0300 |
commit | 2f4dc45da2fbe6ab4469f1c836683bec9c8f0dd9 (patch) | |
tree | ea6b5ac2816a7cc2b5bc8d49b396470531d653d6 /app/assets/javascripts/milestone_select.js.coffee | |
parent | 85279c07c9be889a25811a685110ab57a217651e (diff) |
Fixed issue with dashboard/issues not filtering by milestone
Closes #15128
Diffstat (limited to 'app/assets/javascripts/milestone_select.js.coffee')
-rw-r--r-- | app/assets/javascripts/milestone_select.js.coffee | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/assets/javascripts/milestone_select.js.coffee b/app/assets/javascripts/milestone_select.js.coffee index f73127f49f0..6bd4e885a03 100644 --- a/app/assets/javascripts/milestone_select.js.coffee +++ b/app/assets/javascripts/milestone_select.js.coffee @@ -85,15 +85,21 @@ class @MilestoneSelect # display:block overrides the hide-collapse rule $value.removeAttr('style') clicked: (selected) -> + page = $('body').data 'page' + isIssueIndex = page is 'projects:issues:index' + isMRIndex = page is page is 'projects:merge_requests:index' + if $dropdown.hasClass 'js-filter-bulk-update' return - if $dropdown.hasClass('js-filter-submit') + if $dropdown.hasClass('js-filter-submit') and (isIssueIndex or isMRIndex) if selected.name? selectedMilestone = selected.name else selectedMilestone = '' Issues.filterResults $dropdown.closest('form') + else if $dropdown.hasClass('js-filter-submit') + $dropdown.closest('form').submit() else selected = $selectbox .find('input[type="hidden"]') |