8000 fix #1328: Add div.card-views surrounds all the card view divs · chavp/bootstrap-table@08724bd · GitHub
[go: up one dir, main page]

Skip to content

Commit 08724bd

Browse files
committed
fix wenzhixin#1328: Add div.card-views surrounds all the card view divs
1 parent 166e3bf commit 08724bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap-table.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,7 +1619,7 @@
16191619
);
16201620

16211621
if (this.options.cardView) {
1622-
html.push(sprintf('<td colspan="%s">', this.header.fields.length));
1622+
html.push(sprintf('<td colspan="%s"><div class="card-views">', this.header.fields.length));
16231623
}
16241624

16251625
if (!this.options.cardView && this.options.detailView) {
@@ -1746,7 +1746,7 @@
17461746
});
17471747

17481748
if (this.options.cardView) {
1749-
html.push('</td>');
1749+
html.push('</div></td>');
17501750
}
17511751

17521752
html.push('</tr>');

0 commit comments

Comments
 (0)
0