diff --git a/etemplate/js/etemplate.js b/etemplate/js/etemplate.js index 6f52ea4b1b..d53cfaeb53 100644 --- a/etemplate/js/etemplate.js +++ b/etemplate/js/etemplate.js @@ -124,6 +124,11 @@ function selectbox_add_option(id,label,value,do_onchange) selectBox.options[selectBox.length] = new Option(label,value,false,true); } if (selectBox.onchange && do_onchange) selectBox.onchange(); + + // If chosen is loaded, trigger update + if(selectBox && $j().chosen) { + $j(selectBox).trigger("liszt:updated"); + } } /* toggles all checkboxes named name in form form, to be used as custom javascript in onclick of a button/image */