mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-15 19:20:47 +01:00
Api: Always resolve jsonq, even if empty array
Fixes callback was not called if response was []
This commit is contained in:
parent
759eb22505
commit
95aae678ff
@ -110,6 +110,11 @@ egw.extend('jsonq', egw.MODULE_GLOBAL, function()
|
||||
json.handleResponse({response: response});
|
||||
}
|
||||
}
|
||||
// Response is there, but empty. Make sure to resolve it or the callback doesn't get called.
|
||||
if (typeof response.length !== "undefined" && response.length == 0)
|
||||
{
|
||||
job.resolve();
|
||||
}
|
||||
}
|
||||
|
||||
delete jsonq_queue[uid];
|
||||
|
Loading…
Reference in New Issue
Block a user