ソースを参照

Merge pull request #1483 from RJHsiao/patch-1

Update bootstrap-table-export.js for bug fix
文翼 10 年 前
コミット
660889946c
1 ファイル変更2 行追加3 行削除
  1. 2 3
      src/extensions/export/bootstrap-table-export.js

+ 2 - 3
src/extensions/export/bootstrap-table-export.js

@@ -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();