diff options
Diffstat (limited to 'app/assets/javascripts/milestone_select.js.coffee')
-rw-r--r-- | app/assets/javascripts/milestone_select.js.coffee | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/app/assets/javascripts/milestone_select.js.coffee b/app/assets/javascripts/milestone_select.js.coffee index 1432f261cdd..23061be3e28 100644 --- a/app/assets/javascripts/milestone_select.js.coffee +++ b/app/assets/javascripts/milestone_select.js.coffee @@ -63,7 +63,8 @@ class @MilestoneSelect milestone.name is selectedMilestone hidden: -> $selectbox.hide() - $value.show() + # display:block overrides the hide-collapse rule + $value.removeAttr('style') clicked: (selected) -> if $dropdown.hasClass 'js-filter-bulk-update' return @@ -71,11 +72,9 @@ class @MilestoneSelect if $dropdown.hasClass('js-filter-submit') if selected.name? selectedMilestone = selected.name - else if selected.title? - selectedMilestone = selected.title else selectedMilestone = '' - $dropdown.parents('form').submit() + Issues.filterResults $dropdown.closest('form') else selected = $selectbox .find('input[type="hidden"]') |