- Added server side implementation of application sorting

- Filtering "remove"-function from arrays before sending them via json
This commit is contained in:
Andreas Stöckel
2010-06-16 12:07:50 +00:00
parent e5552d1b45
commit c953709866
2 changed files with 37 additions and 2 deletions

View File

@ -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(',') + ']';