Browse Source

Row state field value fix

Set proper row state field value depending on "checked" property of the input.
macias3 10 years ago
parent
commit
f41248802a
1 changed files with 1 additions and 1 deletions
  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;
         });
     };