Skip to content

Commit

Permalink
Refs wenzhixin#3168: add to collapse-row
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhixin committed Jan 2, 2018
1 parent 00b3ca4 commit 17dda62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 17dda62

Please sign in to comment.