From 9d96eecadfb33b485bd15c91bf2a5c4f09cace1b Mon Sep 17 00:00:00 2001 From: RouxRC Date: Mon, 28 Aug 2017 02:43:35 +0200 Subject: [PATCH] expose column to attributeReader function for potential use --- jquery.dynatable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jquery.dynatable.js b/jquery.dynatable.js index 9285e1e..1637f0e 100644 --- a/jquery.dynatable.js +++ b/jquery.dynatable.js @@ -329,7 +329,7 @@ return record[this.id]; }; - function defaultAttributeReader(cell, record) { + function defaultAttributeReader(cell, record, column) { return $(cell).html(); }; @@ -682,7 +682,7 @@ // retrieve the contents of this column for each record) obj.domColumns.add(obj.domColumns.generate(), columns.length, false, true); // don't skipAppend, do skipUpdate } - var value = columns[index].attributeReader(this, record), + var value = columns[index].attributeReader(this, record, columns[index]), attr = columns[index].id; // If value from table is HTML, let's get and cache the text equivalent for