|
@@ -245,7 +245,9 @@
|
|
|
'load-error.bs.table': 'onLoadError',
|
|
'load-error.bs.table': 'onLoadError',
|
|
|
'column-switch.bs.table': 'onColumnSwitch',
|
|
'column-switch.bs.table': 'onColumnSwitch',
|
|
|
'page-change.bs.table': 'onPageChange',
|
|
'page-change.bs.table': 'onPageChange',
|
|
|
- 'search.bs.table': 'onSearch'
|
|
|
|
|
|
|
+ 'search.bs.table': 'onSearch',
|
|
|
|
|
+ 'pre-body.bs.table': 'onPreBody',
|
|
|
|
|
+ 'post-body.bs.table': 'onPostBody'
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
BootstrapTable.prototype.init = function () {
|
|
BootstrapTable.prototype.init = function () {
|
|
@@ -896,6 +898,8 @@
|
|
|
html = [],
|
|
html = [],
|
|
|
data = this.getData();
|
|
data = this.getData();
|
|
|
|
|
|
|
|
|
|
+ this.trigger('pre-body', data);
|
|
|
|
|
+
|
|
|
this.$body = this.$el.find('tbody');
|
|
this.$body = this.$el.find('tbody');
|
|
|
if (!this.$body.length) {
|
|
if (!this.$body.length) {
|
|
|
this.$body = $('<tbody></tbody>').appendTo(this.$el);
|
|
this.$body = $('<tbody></tbody>').appendTo(this.$el);
|
|
@@ -1113,6 +1117,8 @@
|
|
|
|
|
|
|
|
this.updateSelected();
|
|
this.updateSelected();
|
|
|
this.resetView();
|
|
this.resetView();
|
|
|
|
|
+
|
|
|
|
|
+ this.trigger('post-body');
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
BootstrapTable.prototype.initServer = function (silent) {
|
|
BootstrapTable.prototype.initServer = function (silent) {
|