mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 01:29:05 +01:00
Avoid error if this.input is not yet set
This commit is contained in:
parent
7e6bcc035f
commit
2364a39de0
@ -872,7 +872,7 @@ var et2_selectbox = (function(){ "use strict"; return et2_inputWidget.extend(
|
|||||||
this.input.trigger("liszt:updated");
|
this.input.trigger("liszt:updated");
|
||||||
}
|
}
|
||||||
// Sometimes value gets set before options
|
// 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
|
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