jqh 5 年之前
父节点
当前提交
8fe00cae26
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/Grid/Displayers/Checkbox.php
  2. 2 2
      src/Grid/Displayers/Radio.php

+ 2 - 2
src/Grid/Displayers/Checkbox.php

@@ -82,13 +82,13 @@ EOT;
             data: JSON.stringify(data),
             success: function (data) {
                 btn.buttonLoading(false);
-                btn.attr('loading', 0);
+                btn.removeAttr('loading');
                 Dcat.success(data.message);
                 reload && Dcat.reload();
             },
             error: function (a, b, c) {
                 btn.buttonLoading(false);
-                btn.attr('loading', 0);
+                btn.removeAttr('loading');
                 Dcat.handleAjaxError(a, b, c);
             },
         });

+ 2 - 2
src/Grid/Displayers/Radio.php

@@ -75,13 +75,13 @@ EOT;
             },
             success: function (data) {
                 btn.buttonLoading(false);
-                btn.attr('loading', 0);
+                btn.removeAttr('loading');
                 Dcat.success(data.message);
                 reload && Dcat.reload()
             },
             error: function (a, b, c) {
                 btn.buttonLoading(false);
-                btn.attr('loading', 0);
+                btn.removeAttr('loading');
                 Dcat.handleAjaxError(a, b, c);
             },
         });