mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-15 19:24:21 +02:00
- Added server side implementation of application sorting
- Filtering "remove"-function from arrays before sending them via json
This commit is contained in:
@ -87,11 +87,13 @@ function egw_json_encode(input)
|
||||
{
|
||||
switch (input.constructor)
|
||||
{
|
||||
case Array:
|
||||
case Array:
|
||||
var buf = [];
|
||||
for (var k in input)
|
||||
{
|
||||
buf.push(egw_json_encode(input[k]));
|
||||
//Filter the remove function, which is added to arrays in egw_fw_classes
|
||||
if (k != 'remove')
|
||||
buf.push(egw_json_encode(input[k]));
|
||||
}
|
||||
return '[' + buf.join(',') + ']';
|
||||
|
||||
|
Reference in New Issue
Block a user