|
@@ -1785,7 +1785,7 @@
|
|
|
$tr = $td.parent(),
|
|
$tr = $td.parent(),
|
|
|
item = that.data[$tr.data('index')],
|
|
item = that.data[$tr.data('index')],
|
|
|
index = $td[0].cellIndex,
|
|
index = $td[0].cellIndex,
|
|
|
- field = that.header.fields[that.options.detailView && !that.options.cardView ? index - 1 : index],
|
|
|
|
|
|
|
+ field = that.getVisibleFields()[that.options.detailView && !that.options.cardView ? index - 1 : index],
|
|
|
column = that.columns[getFieldIndex(that.columns, field)],
|
|
column = that.columns[getFieldIndex(that.columns, field)],
|
|
|
value = getItemField(item, field, that.options.escape);
|
|
value = getItemField(item, field, that.options.escape);
|
|
|
|
|
|
|
@@ -1794,7 +1794,7 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
that.trigger(e.type === 'click' ? 'click-cell' : 'dbl-click-cell', field, value, item, $td);
|
|
that.trigger(e.type === 'click' ? 'click-cell' : 'dbl-click-cell', field, value, item, $td);
|
|
|
- that.trigger(e.type === 'click' ? 'click-row' : 'dbl-click-row', item, $tr);
|
|
|
|
|
|
|
+ that.trigger(e.type === 'click' ? 'click-row' : 'dbl-click-row', item, $tr, field);
|
|
|
|
|
|
|
|
// if click to select - then trigger the checkbox/radio click
|
|
// if click to select - then trigger the checkbox/radio click
|
|
|
if (e.type === 'click' && that.options.clickToSelect && column.clickToSelect) {
|
|
if (e.type === 'click' && that.options.clickToSelect && column.clickToSelect) {
|