Commit 376b4d7b authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Put _rownumber in the row function too

parent 051eca1d
......@@ -124,10 +124,12 @@ function TableRenderer(target, source, columns, options) {
if (data.count > 0) {
forEach(data.data, function(row) {
var tr = self.rowfunction(row, ++rownumber, data);
rownumber++;
row._rownumber = rownumber;
var tr = self.rowfunction(row, rownumber, data);
if ( row._class ) { tr.className = row._class; }
if ( row._id ) { tr.id = row._id; }
row._rownumber = rownumber;
forEach(self.columns, function (column) {
if ( typeof(column) == 'string' ) {
......
Supports Markdown
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