|
|
@@ -83,12 +83,11 @@
|
|
|
};
|
|
|
|
|
|
if (that.options.exportDataType === 'all' && that.options.pagination) {
|
|
|
- that.togglePagination();
|
|
|
- that.$el.on('load-success.bs.table', function () {
|
|
|
+ that.$el.one('load-success.bs.table page-change.bs.table', function () {
|
|
|
doExport();
|
|
|
- that.$el.off('load-success.bs.table');
|
|
|
that.togglePagination();
|
|
|
});
|
|
|
+ that.togglePagination();
|
|
|
} else if (that.options.exportDataType === 'selected') {
|
|
|
var data = that.getData(),
|
|
|
selectedData = that.getAllSelections();
|