浏览代码

fix #1328: Add div.card-views surrounds all the card view divs

zhixin 9 年之前
父节点
当前提交
08724bd596
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/bootstrap-table.js

+ 2 - 2
src/bootstrap-table.js

@@ -1619,7 +1619,7 @@
             );
             );
 
 
             if (this.options.cardView) {
             if (this.options.cardView) {
-                html.push(sprintf('<td colspan="%s">', this.header.fields.length));
+                html.push(sprintf('<td colspan="%s"><div class="card-views">', this.header.fields.length));
             }
             }
 
 
             if (!this.options.cardView && this.options.detailView) {
             if (!this.options.cardView && this.options.detailView) {
@@ -1746,7 +1746,7 @@
             });
             });
 
 
             if (this.options.cardView) {
             if (this.options.cardView) {
-                html.push('</td>');
+                html.push('</div></td>');
             }
             }
 
 
             html.push('</tr>');
             html.push('</tr>');