浏览代码

Row state field value fix

Set proper row state field value depending on "checked" property of the input.
macias3 10 年之前
父节点
当前提交
f41248802a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/bootstrap-table.js

+ 1 - 1
src/bootstrap-table.js

@@ -1460,7 +1460,7 @@
         var that = this;
 
         this.$selectItem.each(function () {
-            that.data[$(this).data('index')][that.header.stateField] = checked;
+            that.data[$(this).data('index')][that.header.stateField] = $(this).prop('checked') && checked;
         });
     };