mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-18 20:51:23 +01:00
Make sure we are not requesting server for an empty value option or other widgets but select-timezone as server won't find anything and it will fall into an infinitive loop, e.g. select-cat widget.
This commit is contained in:
parent
b56467a0c5
commit
d48ad7da79
@ -1120,9 +1120,10 @@ jQuery.extend(et2_selectbox,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Check that the value is in there
|
// Check that the value is in there
|
||||||
// Make sure we are not requesting server for an empty value option
|
// Make sure we are not requesting server for an empty value option or
|
||||||
// as server won't find anything and it will fall into an infinitive loop
|
// other widgets but select-timezone as server won't find anything and
|
||||||
if(attrs.value && attrs.value != "" && attrs.value != "0")
|
// it will fall into an infinitive loop, e.g. select-cat widget.
|
||||||
|
if(attrs.value && attrs.value != "" && attrs.value != "0" && attrs.type == "select-timezone")
|
||||||
{
|
{
|
||||||
var missing_option = true;
|
var missing_option = true;
|
||||||
for(var i = 0; i < cache.length && missing_option; i++)
|
for(var i = 0; i < cache.length && missing_option; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user