From f58ef2980f3f186f30d0458c94a73a1c1a8fc4f7 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 25 Apr 2016 19:37:37 +0000 Subject: [PATCH] When select options change and we have tags turned on, update chosen --- api/js/etemplate/et2_widget_selectbox.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/js/etemplate/et2_widget_selectbox.js b/api/js/etemplate/et2_widget_selectbox.js index 1a942024a1..7bef24d08f 100644 --- a/api/js/etemplate/et2_widget_selectbox.js +++ b/api/js/etemplate/et2_widget_selectbox.js @@ -802,6 +802,10 @@ var et2_selectbox = (function(){ "use strict"; return et2_inputWidget.extend( } this.options.select_options = _options; + if(this.options.tags || this.options.search) + { + this.input.trigger("liszt:updated"); + } // Sometimes value gets set before options if(this.value || this.options.empty_label) this.set_value(this.value, true); // true = dont try to set_options, to avoid an infinit recursion },