forked from extern/egroupware
Handle value set before taglist is created without errors
This commit is contained in:
parent
9e7838732b
commit
27720bdaa2
@ -406,11 +406,8 @@ var et2_taglist = et2_selectbox.extend(
|
||||
{
|
||||
if (value === '' || value === null) value = [];
|
||||
var values = jQuery.isArray(value) ? jQuery.extend([],value) : [value];
|
||||
this.options.value = values;
|
||||
|
||||
if(this.taglist == null) return;
|
||||
|
||||
if(!value)
|
||||
if(!value && this.taglist)
|
||||
{
|
||||
this.taglist.clear(true);
|
||||
return;
|
||||
@ -458,6 +455,10 @@ var et2_taglist = et2_selectbox.extend(
|
||||
}
|
||||
}
|
||||
|
||||
this.options.value = values;
|
||||
|
||||
if(this.taglist == null) return;
|
||||
|
||||
this.taglist.setSelection(values);
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user