From 2e3c082f2a07d93de2f552d6504f33204e93a447 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Tue, 8 Mar 2016 11:58:14 +0000 Subject: Status dropdown --- app/assets/javascripts/milestone_select.js.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/assets/javascripts/milestone_select.js.coffee') diff --git a/app/assets/javascripts/milestone_select.js.coffee b/app/assets/javascripts/milestone_select.js.coffee index aa0d632561f..9c45800af6e 100644 --- a/app/assets/javascripts/milestone_select.js.coffee +++ b/app/assets/javascripts/milestone_select.js.coffee @@ -16,7 +16,7 @@ class @MilestoneSelect data.unshift( title: 'No milestone' ) - + if showAny data.unshift( title: 'Any milestone' @@ -41,5 +41,6 @@ class @MilestoneSelect isSelected: (milestone) -> milestone.title is selectedMilestone clicked: -> - $(dropdown).parents('form').submit() + if $(dropdown).hasClass "js-filter-submit" + $(dropdown).parents('form').submit() ) -- cgit v1.2.1