Check that input is created before using it, avoids error when chosen gets involved.

This commit is contained in:
Nathan Gray 2013-06-25 21:56:08 +00:00
parent 3ddf4a0300
commit c8d2953c85

View File

@ -448,7 +448,7 @@ var et2_selectbox = et2_inputWidget.extend(
{ {
_value = _value.split(','); _value = _value.split(',');
} }
if(this.options.tags || this.options.search) if(this.input !== null && (this.options.tags || this.options.search))
{ {
this.input.val(_value); this.input.val(_value);
this.input.trigger("liszt:updated"); this.input.trigger("liszt:updated");