Browse Source

Fix for Issue #45

Make undesirable behavior opt-in.
Janet Moery 11 years ago
parent
commit
35f831b96c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/bootstrap-table.js

+ 2 - 1
src/bootstrap-table.js

@@ -85,6 +85,7 @@
         clickToSelect: false,
         clickToSelect: false,
         singleSelect: false,
         singleSelect: false,
         toolbar: undefined,
         toolbar: undefined,
+        checkBoxHeader: false,  //True will display check-all checkbox in header row vs. text
 
 
         rowStyle: function(row, index) {return {};},
         rowStyle: function(row, index) {return {};},
 
 
@@ -246,7 +247,7 @@
             }
             }
 
 
             if (column.checkbox) {
             if (column.checkbox) {
-                if (!that.options.singleSelect) {
+                if (!that.options.singleSelect && that.options.checkBoxHeader) {
                     text = '<input name="btSelectAll" type="checkbox" />';
                     text = '<input name="btSelectAll" type="checkbox" />';
                 }
                 }
                 that.header.stateField = column.field;
                 that.header.stateField = column.field;