|
|
@@ -1969,14 +1969,14 @@
|
|
|
// remove and update
|
|
|
if ($tr.next().is('tr.detail-view')) {
|
|
|
$this.find('i').attr('class', sprintf('%s %s', that.options.iconsPrefix, that.options.icons.detailOpen));
|
|
|
- that.trigger('collapse-row', index, row);
|
|
|
+ that.trigger('collapse-row', index, row, $tr.next());
|
|
|
$tr.next().remove();
|
|
|
} else {
|
|
|
$this.find('i').attr('class', sprintf('%s %s', that.options.iconsPrefix, that.options.icons.detailClose));
|
|
|
$tr.after(sprintf('<tr class="detail-view"><td colspan="%s"></td></tr>', $tr.find('td').length));
|
|
|
var $element = $tr.next().find('td');
|
|
|
var content = calculateObjectValue(that.options, that.options.detailFormatter, [index, row, $element], '');
|
|
|
- if($element.length === 1) {
|
|
|
+ if ($element.length === 1) {
|
|
|
$element.append(content);
|
|
|
}
|
|
|
that.trigger('expand-row', index, row, $element);
|