mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix infinitive request from selectbox widget
This commit is contained in:
parent
6e6e9c55bd
commit
f89d4297d9
@ -1131,7 +1131,9 @@ jQuery.extend(et2_selectbox,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Check that the value is in there
|
// Check that the value is in there
|
||||||
if(attrs.value)
|
// Make sure we are not requesting server for an empty value option
|
||||||
|
// as server won't find anything and it will fall into an infinitive loop
|
||||||
|
if(attrs.value && attrs.value != "" && attrs.value != "0")
|
||||||
{
|
{
|
||||||
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