Browse Source

Fix typo of bootstrap-table

zhixin 8 years ago
parent
commit
7056efac93
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/bootstrap-table.js

+ 3 - 3
src/bootstrap-table.js

@@ -2081,10 +2081,10 @@
             },
             error: function (res) {
                 var data = [];
-                if (this.options.sidePagination === 'server') {
+                if (that.options.sidePagination === 'server') {
                     data = {};
-                    data[this.options.totalField] = 0;
-                    data[this.options.dataField] = [];
+                    data[that.options.totalField] = 0;
+                    data[that.options.dataField] = [];
                 }
                 that.load(data);
                 that.trigger('load-error', res.status, res);