Changeset 5707

Show
Ignore:
Timestamp:
03/01/10 02:15:19 (3 years ago)
Author:
blogic
Message:

iterate elements will get a json object called sections with the payload

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci2/cbi2/json.c

    r5699 r5707  
    3535        json_object_object_add(j, "elements", sub); 
    3636    } 
     37    if(CAPS(e) & CAP_ITERATE) 
     38        json_object_object_add(j, "sections", json_object_new_object()); 
    3739    id = cbi_find_prop(e, "id"); 
    3840    json_object_object_add(q, id, j);