Browse Source

Fix onLoad events error.

zhixin 11 years ago
parent
commit
5b4f6d6fe1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/bootstrap-table.js

+ 2 - 2
src/bootstrap-table.js

@@ -640,10 +640,10 @@
             dataType: 'json',
             success: function(data) {
                 that.load(data);
-                that.onLoadSuccess(data);
+                that.options.onLoadSuccess(data);
             },
             error: function(res) {
-                that.onLoadError(res.status);
+                that.options.onLoadError(res.status);
             },
             complete: function() {
                 that.$loading.hide();