|
|
@@ -1836,6 +1836,14 @@
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+ BootstrapTable.prototype.getAllSelections = function () {
|
|
|
+ var that = this;
|
|
|
+
|
|
|
+ return $.grep(this.options.data, function (row) {
|
|
|
+ return row[that.header.stateField];
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
BootstrapTable.prototype.checkAll = function () {
|
|
|
this.checkAll_(true);
|
|
|
};
|
|
|
@@ -2014,7 +2022,7 @@
|
|
|
|
|
|
var allowedMethods = [
|
|
|
'getOptions',
|
|
|
- 'getSelections', 'getData',
|
|
|
+ 'getSelections', 'getAllSelections', 'getData',
|
|
|
'load', 'append', 'prepend', 'remove',
|
|
|
'insertRow', 'updateRow',
|
|
|
'showRow', 'hideRow', 'getRowsHidden',
|