Browse Source

Trigger onCheck/onUncheck event handler after calling method check/uncheck

macias3 11 years ago
parent
commit
4265e65236
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/bootstrap-table.js

+ 1 - 0
src/bootstrap-table.js

@@ -1533,6 +1533,7 @@
         this.$selectItem.filter(sprintf('[data-index="%s"]', index)).prop('checked', checked);
         this.data[index][this.header.stateField] = checked;
         this.updateSelected();
+        this.trigger(checked ? 'check' : 'uncheck', this.data[index]);
     };
 
     BootstrapTable.prototype.destroy = function () {