when setting a value of a text list cell, pass key, value _and all data_ to the format function

This commit is contained in:
rlx 2011-10-22 14:55:13 +00:00
parent cfc5baef61
commit 6eef7c567b

View file

@ -943,7 +943,7 @@ Ox.TextList = function(options, self) {
id = value; id = value;
} }
$cell = getCell(id, key); $cell = getCell(id, key);
$cell && $cell.html(formatValue(key, value)); $cell && $cell.html(formatValue(key, value, that.$body.value(id)));
if (key == self.options.sort[0].key) { if (key == self.options.sort[0].key) {
// sort key has changed // sort key has changed
that.$body.sort(); that.$body.sort();