¨4.0.1¨
This commit is contained in:
17
Modules/User/Resources/assets/admin/js/auth.js
Normal file
17
Modules/User/Resources/assets/admin/js/auth.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import jQuery from "jquery";
|
||||
|
||||
window.$ = window.jQuery = jQuery;
|
||||
|
||||
$("[data-loading]").on("click", (e) => {
|
||||
let button = $(e.currentTarget);
|
||||
|
||||
if (button.is("i")) {
|
||||
button = button.parent();
|
||||
}
|
||||
|
||||
button
|
||||
.addClass("btn-loading")
|
||||
.attr("disabled", "disabled")
|
||||
.parents("form")
|
||||
.trigger("submit");
|
||||
});
|
||||
Reference in New Issue
Block a user