ソースを参照

Fix #1646: support to implemente AJAX 'complete' option.

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

+ 2 - 5
src/bootstrap-table.js

@@ -1755,14 +1755,11 @@
 
                 that.load(res);
                 that.trigger('load-success', res);
+                if (!silent) that.$tableLoading.hide();
             },
             error: function (res) {
                 that.trigger('load-error', res.status, res);
-            },
-            complete: function () {
-                if (!silent) {
-                    that.$tableLoading.hide();
-                }
+                if (!silent) that.$tableLoading.hide();
             }
         });