ソースを参照

Fix onLoad events error.

zhixin 11 年 前
コミット
5b4f6d6fe1
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/bootstrap-table.js

+ 2 - 2
src/bootstrap-table.js

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