Commit 88c7970f authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Fixed to pass TOP level data element to the column functions :)

parent e82df059
......@@ -41,7 +41,7 @@ function TableRenderer(target, source, columns, options) {
this.renderdata = function(data) {
replaceChildNodes(self.tbody);
forEach(data, function(row) {
forEach(data.data, function(row) {
var tr = TR();
if ( row._class ) { tr.className = row._class; }
if ( row._id ) { tr.id = row._id; }
......@@ -89,7 +89,7 @@ function TableRenderer(target, source, columns, options) {
self.offset = data.offset;
self.count = data.count;
self.renderdata(data.data);
self.renderdata(data);
},
function (error) {
processingStop();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment