mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
Avoid error if this.input is not yet set
This commit is contained in:
parent
7e65dcbdae
commit
f43ddba7bc
@ -872,7 +872,7 @@ var et2_selectbox = (function(){ "use strict"; return et2_inputWidget.extend(
|
||||
this.input.trigger("liszt:updated");
|
||||
}
|
||||
// Sometimes value gets set before options
|
||||
if(this.value || this.options.empty_label || this.value === '' && this.input.children('[value=""]').length === 1)
|
||||
if(this.value || this.options.empty_label || this.value === '' && this.input && this.input.children('[value=""]').length === 1)
|
||||
{
|
||||
this.set_value(this.value, true); // true = dont try to set_options, to avoid an infinit recursion
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user