jqh 5 lat temu
rodzic
commit
8fe00cae26

+ 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);
             },
         });