From efea3648fcc3b618315f626459fa131687ab3e47 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Wed, 10 Feb 2016 11:42:35 +0100 Subject: [PATCH] columnSelect: trigger change on the select on change --- app/assets/javascripts/app/lib/app_post/column_select.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/app/lib/app_post/column_select.coffee b/app/assets/javascripts/app/lib/app_post/column_select.coffee index 8ce6a520c..d710ec2db 100644 --- a/app/assets/javascripts/app/lib/app_post/column_select.coffee +++ b/app/assets/javascripts/app/lib/app_post/column_select.coffee @@ -50,6 +50,7 @@ class App.ColumnSelect extends Spine.Controller @pool.find("[data-value='#{value}']").addClass 'is-hidden' @values.push(value) @shadow.val(@values) + @shadow.trigger('change') @placeholder.addClass 'is-hidden' @@ -64,6 +65,7 @@ class App.ColumnSelect extends Spine.Controller @selected.find("[data-value='#{value}']").addClass 'is-hidden' @values.splice(@values.indexOf(value), 1) @shadow.val(@values) + @shadow.trigger('change') if !@values.length @placeholder.removeClass 'is-hidden'