浏览代码

Fix #113: Using radio type and cardView error.

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

+ 5 - 0
src/bootstrap-table.js

@@ -794,6 +794,11 @@
                 }
 
                 if (that.options.columns[j].checkbox || that.options.columns[j].radio) {
+                    //if card view mode bypass
+                    if (that.options.cardView) {
+                        return true;
+                    }
+
                     type = that.options.columns[j].checkbox ? 'checkbox' : type;
                     type = that.options.columns[j].radio ? 'radio' : type;