API in xml-mode ook total_count en dergelijke laten opleveren
svn path=/Website/trunk/; revision=33392
This commit is contained in:
@@ -708,6 +708,10 @@ api2_rest = {
|
||||
else
|
||||
{
|
||||
var arrayElement = xmlDoc.createElement(rootname);
|
||||
arrayElement.setAttribute("total_count", model.total_count);
|
||||
arrayElement.setAttribute("limit", model.limit);
|
||||
arrayElement.setAttribute("offset", 0);
|
||||
|
||||
for (var i = 0; i < data.length; i++)
|
||||
arrayElement.appendChild(record2json(data[i], record_name));
|
||||
xmlDoc.appendChild(arrayElement);
|
||||
|
||||
Reference in New Issue
Block a user